| @@ 42-54 (lines=13) @@ | ||
| 39 | private $commandBus; |
|
| 40 | private $urlGenerator; |
|
| 41 | ||
| 42 | public function __construct( |
|
| 43 | FormHandler $formHandler, |
|
| 44 | CommandBus $commandBus, |
|
| 45 | \Twig_Environment $twig, |
|
| 46 | FlashBagInterface $flashBag, |
|
| 47 | UrlGeneratorInterface $urlGenerator |
|
| 48 | ) { |
|
| 49 | $this->twig = $twig; |
|
| 50 | $this->flashBag = $flashBag; |
|
| 51 | $this->formHandler = $formHandler; |
|
| 52 | $this->commandBus = $commandBus; |
|
| 53 | $this->urlGenerator = $urlGenerator; |
|
| 54 | } |
|
| 55 | ||
| 56 | public function execute($entity, EntityConfiguration $config, Request $request, $options = null) |
|
| 57 | { |
|
| @@ 39-49 (lines=11) @@ | ||
| 36 | private $formHandler; |
|
| 37 | private $commandBus; |
|
| 38 | ||
| 39 | public function __construct( |
|
| 40 | FormHandler $formHandler, |
|
| 41 | CommandBus $commandBus, |
|
| 42 | \Twig_Environment $twig, |
|
| 43 | FlashBagInterface $flashBag |
|
| 44 | ) { |
|
| 45 | $this->twig = $twig; |
|
| 46 | $this->flashBag = $flashBag; |
|
| 47 | $this->formHandler = $formHandler; |
|
| 48 | $this->commandBus = $commandBus; |
|
| 49 | } |
|
| 50 | ||
| 51 | public function execute($entity, EntityConfiguration $config, Request $request, $options = null) |
|
| 52 | { |
|