Skip to content

Commit 5dfd5d1

Browse files
committed
rename NonComposerComponentRegistration to registration
- rename to registration - rename the glob pattern-list-file accordingly - streamline with autoload.php as it is on the same level, that is, effec- tively move the file one directory up. - require file with list of glob patterns (squash)
1 parent d039dac commit 5dfd5d1

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

app/etc/include-globlist.php renamed to app/etc/registration_globlist.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* Glob patterns relative to this files parent directory, used by
4-
* NonComposerComponentRegistration.php to generate a list of includes.
4+
* registration.php to generate a list of includes.
55
*/
66
return [
77
'code/*/*/cli_commands.php',

app/etc/NonComposerComponentRegistration.php renamed to app/registration.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22
/**
3+
* Register components (via a list of glob patterns)
4+
*
35
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
46
* See COPYING.txt for license details.
57
*/
@@ -16,8 +18,8 @@
1618
*/
1719
function main()
1820
{
19-
$globPatterns = include __DIR__ . '/include-globlist.php';
20-
$baseDir = dirname(__DIR__) . '/';
21+
$globPatterns = require __DIR__ . '/etc/registration_globlist.php';
22+
$baseDir = __DIR__ . '/';
2123

2224
foreach ($globPatterns as $globPattern) {
2325
// Sorting is disabled intentionally for performance improvement

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@
237237
]
238238
},
239239
"files": [
240-
"app/etc/NonComposerComponentRegistration.php"
240+
"app/registration.php"
241241
],
242242
"exclude-from-classmap": [
243243
"**/dev/**",

0 commit comments

Comments
 (0)