diff --git a/Controller/StaticController.php b/Controller/StaticController.php index 6c34a62..ba22224 100755 --- a/Controller/StaticController.php +++ b/Controller/StaticController.php @@ -34,7 +34,7 @@ class StaticController extends Controller public function rootAction() { return $this->render('@GradientzTwigExpress/root.html.twig', [ - 'bundles' => $this->getParameter('twig_express.bundles') + 'bundles' => $this->container->getParameter('twig_express.bundles') ]); } @@ -47,7 +47,7 @@ public function rootAction() */ public function findAction($slug, $path) { - $this->debug = $this->getParameter('kernel.debug'); + $this->debug = $this->container->getParameter('kernel.debug'); $cleanPath = Utils::getCleanPath($path); $pathExt = pathinfo($cleanPath, PATHINFO_EXTENSION); $showSource = $pathExt === 'twig'; @@ -69,7 +69,7 @@ public function findAction($slug, $path) } // Figure out bundle name - $bundleConfig = $this->getParameter('twig_express.bundles'); + $bundleConfig = $this->container->getParameter('twig_express.bundles'); if (!array_key_exists($slug, $bundleConfig)) { $rootUrl = $this->generateUrl('gradientz_twig_express_root'); return $this->redirect($rootUrl . '?was=' . $slug); diff --git a/composer.json b/composer.json index 42c7f78..6d64d0c 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "license": "MIT", "require": { "php": ">=5.4", - "symfony/symfony": ">=2.4", + "symfony/symfony": ">=2.5", "twig/twig": ">=1.15" }, "autoload": {