Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix autoload for demos with classmap authoritative #1585

Merged
merged 1 commit into from
Jan 11, 2021

Conversation

mvorisek
Copy link
Member

@mvorisek mvorisek commented Jan 5, 2021

No description provided.

@@ -10,5 +10,6 @@
if (!$isRootProject && !class_exists(\Atk4\Ui\Tests\ViewTest::class)) {
throw new \Error('Demos can be run only if atk4/ui is a root composer project or if dev files are autoloaded');
}
$loader->setClassMapAuthoritative(false);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

otherwise on runtime setPsr4 is not guaranteed to work

@mvorisek mvorisek added the RTM label Jan 6, 2021
@mvorisek mvorisek changed the title Fix autoload with classmap authoritative Fix autoload for demos with classmap authoritative Jan 11, 2021
@mvorisek mvorisek requested review from georgehristov and removed request for abbadon1334 January 11, 2021 11:36
Copy link
Collaborator

@georgehristov georgehristov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mvorisek mvorisek merged commit 0ae8c56 into develop Jan 11, 2021
@mvorisek mvorisek deleted the fix_demos_autoload branch January 11, 2021 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants