Skip to content

Commit

Permalink
Fix CookiesPageService arguments (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
jordisala1991 committed Jul 8, 2020
1 parent ae1c0f2 commit 6402138
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

namespace Runroom\CookiesBundle\DependencyInjection;

use Runroom\CookiesBundle\Service\CookiesPageService;
use Runroom\CookiesBundle\Service\CookiesService;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
Expand All @@ -31,5 +32,8 @@ public function load(array $configs, ContainerBuilder $container): void

$definition = $container->getDefinition(CookiesService::class);
$definition->setArgument('$cookies', $config['cookies']);

$definition = $container->getDefinition(CookiesPageService::class);
$definition->setArgument('$cookies', $config['cookies']);
}
}
1 change: 1 addition & 0 deletions packages/cookies-bundle/src/Resources/config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ services:
arguments:
$repository: '@Runroom\CookiesBundle\Repository\CookiesPageRepository'
$handler: '@Runroom\FormHandlerBundle\FormHandler'
$cookies: null

Runroom\CookiesBundle\Service\CookiesService:
arguments:
Expand Down

0 comments on commit 6402138

Please sign in to comment.