Skip to content

Used autoloaded AppKernel #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 18, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions Bootstraps/Symfony.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ public function __construct($appenv, $debug)
*/
public function getApplication()
{
if (file_exists('./app/AppKernel.php')) {
require_once './app/AppKernel.php';
}

$this->includeAutoload();

$app = new SymfonyAppKernel($this->appenv, $this->debug); //which extends \AppKernel
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,14 @@ HttpKernel adapter for use of Symfony and Laravel frameworks with PHP-PM. See ht

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

> **Note**: For Symfony, make sure your `AppKernel` is autoloaded in your
> `composer.json` (shouldn't be an issue for projects created using the Standard
> Edition after November 2015):
>
> ```
> {
> "autoload": {
> "classmap": ["app/AppKernel.php"]
> }
> }
> ```