Skip to content

Commit

Permalink
Fix minimum requirements (Symfony 2.5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Florens Verschelde committed Nov 24, 2016
1 parent a354d97 commit 75e6fb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Controller/StaticController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')
]);
}

Expand All @@ -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';
Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "MIT",
"require": {
"php": ">=5.4",
"symfony/symfony": ">=2.4",
"symfony/symfony": ">=2.5",
"twig/twig": ">=1.15"
},
"autoload": {
Expand Down

0 comments on commit 75e6fb7

Please sign in to comment.