partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit 7d250f94c11ed157397260ac36e2cfa8dbada719
parent 4b4d80c51f5a7789c8f9a2a2c6d54871c2132030
Author: Felicitus <felicitus@felicitus.org>
Date:   Mon, 14 Dec 2015 16:36:07 +0100

Added custom bundle helper method to create a custom kernel, see https://wiki.partkeepr.org/wiki/Developers/Custom_Kernel

Diffstat:
Mapp/AppKernel.php | 14++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/app/AppKernel.php b/app/AppKernel.php @@ -31,7 +31,7 @@ class AppKernel extends Kernel new JMS\TranslationBundle\JMSTranslationBundle(), new \PartKeepr\RemoteFileLoader\PartKeeprRemoteFileLoaderBundle(), new \FR3D\LdapBundle\FR3DLdapBundle(), - new Knp\Bundle\GaufretteBundle\KnpGaufretteBundle(), + new Knp\Bundle\GaufretteBundle\KnpGaufretteBundle() ); // Developer bundles @@ -64,7 +64,8 @@ class AppKernel extends Kernel $bundles[] = new PartKeepr\ExportBundle\PartKeeprExportBundle(); $bundles[] = new PartKeepr\StatisticBundle\PartKeeprStatisticBundle(); - return $bundles; + + return array_merge($bundles, $this->getCustomBundles()); } /** @@ -85,6 +86,15 @@ class AppKernel extends Kernel } /** + * Returns any custom bundles for a custom setup. Override this + * method in a custom AppKernel. + * @return array + */ + public function getCustomBundles () { + return []; + } + + /** * Override to allow different cache environments set by the environment variable PARTKEEPR_ENVIRONMENT * @return string */