Skip to content
This repository has been archived by the owner on Nov 27, 2020. It is now read-only.

Autoload the AppKernel using Composer #869

Merged
merged 1 commit into from
Oct 22, 2015

Conversation

mnapoli
Copy link
Contributor

@mnapoli mnapoli commented Oct 13, 2015

Fixes #868

Using Composer to load the AppKernel means we don't have to manually include it in all the entry points of the application.

It is possible to register single files to load every time in Composer. Using Composer to load the AppKernel means we don't have to manually include it in all the entry points of the application.
@Tobion
Copy link
Member

Tobion commented Oct 13, 2015

👍

@@ -15,7 +15,6 @@ set_time_limit(0);
* @var Composer\Autoload\ClassLoader $loader
*/
$loader = require __DIR__.'/../app/autoload.php';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like it can be simplified too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not part of this pull request, additionally I believe the variable is kept so that you can uncomment the code below: https://github.com/symfony/symfony-standard/blob/2.8/web/app.php#L11-L19

@Tobion
Copy link
Member

Tobion commented Oct 22, 2015

ping @symfony/deciders

@aitboudad
Copy link
Contributor

@@ -24,8 +24,6 @@
$loader = require __DIR__.'/../app/autoload.php';
Debug::enable();

require_once __DIR__.'/../app/AppKernel.php';
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aitboudad it’s there

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:)

@mnapoli
Copy link
Contributor Author

mnapoli commented Oct 22, 2015

@aitboudad see #869 (comment)

@aitboudad
Copy link
Contributor

👍

1 similar comment
@xabbuh
Copy link
Member

xabbuh commented Oct 22, 2015

👍

@Tobion
Copy link
Member

Tobion commented Oct 22, 2015

Thank you @mnapoli.

@Tobion Tobion merged commit ab358a4 into symfony:2.8 Oct 22, 2015
Tobion added a commit that referenced this pull request Oct 22, 2015
This PR was merged into the 2.8 branch.

Discussion
----------

Autoload the AppKernel using Composer

Fixes #868

Using Composer to load the AppKernel means we don't have to manually include it in all the entry points of the application.

Commits
-------

ab358a4 #868 Load the AppKernel class using Composer's autoloader
@mnapoli mnapoli deleted the appkernel-autoload branch October 22, 2015 17:13
@xabbuh
Copy link
Member

xabbuh commented Oct 22, 2015

Shouldn't we backport this to older branches too (I don't see a reason why new Symfony 2.3 or 2.7 applications should not benefit from this change).

@Tobion
Copy link
Member

Tobion commented Oct 22, 2015

It's not a bugfix, so IMO it shouldn't be backported.

liverbool added a commit to Joypricecorp/Sylius that referenced this pull request Dec 27, 2016
liverbool added a commit to Joypricecorp/Sylius that referenced this pull request Dec 30, 2016
fix blog post cat name

fix main page

fix admin

fix web

add multiple root taxon

add deploy param

sylius override

composer update

fix migrate script

fix vat price

fix some service

fix template

fix product display

update composer

fix composer

fix composer

fix sf3 deploy structure

fix class autoload

symfony/symfony-standard#869

update node-sass

fix locale

fix bug

- email template
- auto enable user
- missing shop_homepage route
- taxon repo

bugfix

taxation fix wip
liverbool added a commit to Joypricecorp/Sylius that referenced this pull request Dec 31, 2016
fix blog post cat name

fix main page

fix admin

fix web

add multiple root taxon

add deploy param

sylius override

composer update

fix migrate script

fix vat price

fix some service

fix template

fix product display

update composer

fix composer

fix composer

fix sf3 deploy structure

fix class autoload

symfony/symfony-standard#869

update node-sass

fix locale

fix bug

- email template
- auto enable user
- missing shop_homepage route
- taxon repo

bugfix

taxation fix wip

bugfix

fix all error

small fix

translation fix

fix css

fix css

fix gulp run

fix cms build gulp

gulp improve

fix blog post

add featuredCover to post

missing migrate script

add title page

add all posts page
liverbool added a commit to Joypricecorp/Sylius that referenced this pull request Dec 31, 2016
fix blog post cat name

fix main page

fix admin

fix web

add multiple root taxon

add deploy param

sylius override

composer update

fix migrate script

fix vat price

fix some service

fix template

fix product display

update composer

fix composer

fix composer

fix sf3 deploy structure

fix class autoload

symfony/symfony-standard#869

update node-sass

fix locale

fix bug

- email template
- auto enable user
- missing shop_homepage route
- taxon repo

bugfix

taxation fix wip

bugfix

fix all error

small fix

translation fix

fix css

fix css

fix gulp run

fix cms build gulp

gulp improve

fix blog post

add featuredCover to post

missing migrate script

add title page

add all posts page

add taxon name to post grid

fix typo

add link to heading content thumb

better home content page

post bc

add product external order link

add product manual tab

fix image manual

fix typo

fix translate
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
5 participants