File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -33,10 +33,6 @@ public function __construct($appenv, $debug)
33
33
*/
34
34
public function getApplication ()
35
35
{
36
- if (file_exists ('./app/AppKernel.php ' )) {
37
- require_once './app/AppKernel.php ' ;
38
- }
39
-
40
36
$ this ->includeAutoload ();
41
37
42
38
$ app = new SymfonyAppKernel ($ this ->appenv , $ this ->debug ); //which extends \AppKernel
Original file line number Diff line number Diff line change @@ -12,3 +12,14 @@ HttpKernel adapter for use of Symfony and Laravel frameworks with PHP-PM. See ht
12
12
13
13
composer require php-pm/httpkernel-adapter:dev-master
14
14
15
+ > ** Note** : For Symfony, make sure your ` AppKernel ` is autoloaded in your
16
+ > ` composer.json ` (shouldn't be an issue for projects created using the Standard
17
+ > Edition after November 2015):
18
+ >
19
+ > ```
20
+ > {
21
+ > "autoload": {
22
+ > "classmap": ["app/AppKernel.php"]
23
+ > }
24
+ > }
25
+ > ```
You can’t perform that action at this time.
0 commit comments