Skip to content

Commit 26522a9

Browse files
committedSep 14, 2016
Improve autoloading
1 parent e251926 commit 26522a9

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed
 

‎bin/console

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ set_time_limit(0);
1515
* @var Composer\Autoload\ClassLoader $loader
1616
*/
1717
$loader = require __DIR__.'/../app/autoload.php';
18-
require_once __DIR__.'/../app/MicroKernel.php';
1918

2019

2120

‎composer.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
"autoload": {
77
"psr-4": {
88
"": "src/"
9-
}
9+
},
10+
"classmap": [
11+
"app/MicroKernel.php"
12+
]
1013
},
1114
"autoload-dev": {
1215
"psr-4": {

‎web/app.php

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
use Symfony\Component\HttpFoundation\Request;
44

55
$loader = require __DIR__.'/../app/autoload.php';
6-
require_once __DIR__.'/../app/MicroKernel.php';
76

87
$app = new MicroKernel('prod', false);
98
$app->loadClassCache();

‎web/app_dev.php

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
}
2020
*/
2121
$loader = require __DIR__.'/../app/autoload.php';
22-
require_once __DIR__.'/../app/MicroKernel.php';
2322

2423
Debug::enable();
2524

0 commit comments

Comments
 (0)
Please sign in to comment.