-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #3144354 by alexpott, vijaycs85, andypost: ModuleInstaller load…
…s .module and .install before allowing classes to autoloaded (cherry picked from commit 1a48485eded95e8ece29e4ed872fc11eacc05e8d)
- Loading branch information
catch
committed
Jun 29, 2020
1 parent
9e846da
commit d29df8a
Showing
4 changed files
with
34 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
modules/system/tests/modules/module_autoload_test/module_autoload_test.module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* Test module. | ||
*/ | ||
|
||
use Drupal\module_autoload_test\SomeClass; | ||
|
||
define('MODULE_AUTOLOAD_TEST_CONSTANT', SomeClass::TEST); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters