1 | <?php |
||
24 | class GridFactory |
||
25 | { |
||
26 | /** |
||
27 | * @var ManagerRegistry |
||
28 | */ |
||
29 | protected $doctrineRegistry; |
||
30 | |||
31 | /** |
||
32 | * @var TranslatorInterface |
||
33 | */ |
||
34 | protected $translator; |
||
35 | |||
36 | /** |
||
37 | * @var \Twig_Environment |
||
38 | */ |
||
39 | protected $twig; |
||
40 | |||
41 | /** |
||
42 | * GridFactory constructor. |
||
43 | * @param TranslatorInterface $translator |
||
44 | * @param ManagerRegistry $doctrineRegistry |
||
45 | * @param \Twig_environment $twig |
||
46 | */ |
||
47 | public function __construct( |
||
56 | |||
57 | /** |
||
58 | * @param string $type |
||
59 | * @param array $options |
||
60 | * @return GridInterface |
||
61 | */ |
||
62 | public function create($type = 'Cwd\FancyGridBundle\Grid\AbstractGrid', array $options = array()) |
||
77 | |||
78 | /** |
||
79 | * @param string $name |
||
80 | * @param array $options |
||
81 | * @return GridInterface |
||
82 | */ |
||
83 | public function getType($name, $options) |
||
95 | |||
96 | |||
97 | } |
||
98 |