<?phpnamespace App;use Pimcore\HttpKernel\BundleCollection\BundleCollection;use Pimcore\Kernel as PimcoreKernel;class Kernel extends PimcoreKernel{ public function registerBundlesToCollection(BundleCollection $collection) { if (class_exists('\\App\\AppBundle')) { $collection->addBundle(new AppBundle()); } }}