diff --git a/app/AppKernel.php b/app/AppKernel.php index 81e5b3f23..f97b31d9c 100644 --- a/app/AppKernel.php +++ b/app/AppKernel.php @@ -103,7 +103,6 @@ protected function getPimBundles() protected function getPimDependenciesBundles() { return [ - new Akeneo\Tool\Bundle\ApiBundle\PimApiBundle(), new Akeneo\Tool\Bundle\ConnectorBundle\PimConnectorBundle(), new Akeneo\Tool\Bundle\ClassificationBundle\AkeneoClassificationBundle(), new Akeneo\Tool\Bundle\VersioningBundle\AkeneoVersioningBundle(), @@ -116,6 +115,8 @@ protected function getPimDependenciesBundles() new Akeneo\Tool\Bundle\StorageUtilsBundle\AkeneoStorageUtilsBundle(), new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(), new FOS\OAuthServerBundle\FOSOAuthServerBundle(), + // PimApiBundle must be registered after FOSOAuthServerBundle + new Akeneo\Tool\Bundle\ApiBundle\PimApiBundle(), new Oneup\FlysystemBundle\OneupFlysystemBundle(), ]; }