1 | <?php |
||
11 | |||
12 | declare(strict_types=1); |
||
13 | |||
14 | namespace Sylius\Bundle\GridBundle\Renderer; |
||
15 | |||
16 | use Sylius\Component\Grid\Definition\Action; |
||
17 | use Sylius\Component\Grid\Renderer\BulkActionGridRendererInterface; |
||
18 | use Sylius\Component\Grid\View\GridViewInterface; |
||
19 | |||
20 | final class TwigBulkActionGridRenderer implements BulkActionGridRendererInterface |
||
21 | { |
||
22 | /** |
||
23 | * @var \Twig_Environment |
||
28 | * @var array |
||
29 | */ |
||
30 | private $bulkActionTemplates; |
||
31 | |||
32 | public function __construct(\Twig_Environment $twig, array $bulkActionTemplates) |
||
45 | throw new \InvalidArgumentException(sprintf('Missing template for bulk action type "%s".', $type)); |
||
46 | } |
||
55 |