Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mvorisek
Copy link
Member

@mvorisek mvorisek commented Jan 5, 2021

No description provided.

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

Development

Successfully merging this pull request may close these issues.

2 participants