Skip to content

Commit

Permalink
Merge pull request #14 from admin-platform/bugfix/downgrade-symfony-v…
Browse files Browse the repository at this point in the history
…ersion

Downgrade SF version. Replace Twig engine.
  • Loading branch information
andriusvo authored Apr 11, 2022
2 parents c986ce5 + 98dc035 commit 07b02c2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"sylius/resource-bundle": "^1.9",
"sylius/ui-bundle": "^1.11",
"sylius/user-bundle": "^1.11",
"symfony/process": "^6.0"
"symfony/process": "^5.4"
},
"config": {
"bin-dir": "bin"
Expand Down
6 changes: 3 additions & 3 deletions src/Controller/DashboardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
namespace Platform\Bundle\AdminBundle\Controller;

use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Templating\EngineInterface;
use Twig\Environment;

class DashboardController
{
private EngineInterface $templating;
private Environment $templating;

public function __construct(EngineInterface $templating)
public function __construct(Environment $templating)
{
$this->templating = $templating;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/config/services/controller.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<services>

<service id="admin_platform.controller.dashboard" class="Platform\Bundle\AdminBundle\Controller\DashboardController" public="true">
<argument type="service" id="templating" />
<argument type="service" id="twig" />
</service>

</services>
Expand Down

0 comments on commit 07b02c2

Please sign in to comment.