| @@ 35-47 (lines=13) @@ | ||
| 32 | private $commandBus; |
|
| 33 | private $urlGenerator; |
|
| 34 | ||
| 35 | public function __construct( |
|
| 36 | FormFactoryInterface $formFactory, |
|
| 37 | CommandBus $commandBus, |
|
| 38 | \Twig_Environment $twig, |
|
| 39 | FlashBagInterface $flashBag, |
|
| 40 | UrlGeneratorInterface $urlGenerator |
|
| 41 | ) { |
|
| 42 | $this->twig = $twig; |
|
| 43 | $this->flashBag = $flashBag; |
|
| 44 | $this->formFactory = $formFactory; |
|
| 45 | $this->commandBus = $commandBus; |
|
| 46 | $this->urlGenerator = $urlGenerator; |
|
| 47 | } |
|
| 48 | ||
| 49 | public function execute($entity, Entity $config, Request $request, $options = null) |
|
| 50 | { |
|
| @@ 35-45 (lines=11) @@ | ||
| 32 | private $formFactory; |
|
| 33 | private $twig; |
|
| 34 | ||
| 35 | public function __construct( |
|
| 36 | FormFactoryInterface $formFactory, |
|
| 37 | CommandBus $commandBus, |
|
| 38 | \Twig_Environment $twig, |
|
| 39 | FlashBagInterface $flashBag |
|
| 40 | ) { |
|
| 41 | $this->commandBus = $commandBus; |
|
| 42 | $this->flashBag = $flashBag; |
|
| 43 | $this->formFactory = $formFactory; |
|
| 44 | $this->twig = $twig; |
|
| 45 | } |
|
| 46 | ||
| 47 | public function execute($entity, Entity $config, Request $request, $options = null) |
|
| 48 | { |
|