Skip to content

Commit 5ca05f8

Browse files
committed
Merge pull request #23 from gnugat/autoloaded-app-kernel
Used autoloaded AppKernel
2 parents 8216582 + 5b1cd8b commit 5ca05f8

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

Bootstraps/Symfony.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ public function __construct($appenv, $debug)
3333
*/
3434
public function getApplication()
3535
{
36-
if (file_exists('./app/AppKernel.php')) {
37-
require_once './app/AppKernel.php';
38-
}
39-
4036
$this->includeAutoload();
4137

4238
$app = new SymfonyAppKernel($this->appenv, $this->debug); //which extends \AppKernel

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,14 @@ HttpKernel adapter for use of Symfony and Laravel frameworks with PHP-PM. See ht
1212

1313
composer require php-pm/httpkernel-adapter:dev-master
1414

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+
> ```

0 commit comments

Comments
 (0)