src/Kunstmaan/GeneratorBundle/Command/GenerateArticleCommand.php 1 location
|
@@ 99-105 (lines=7) @@
|
96 |
|
/** |
97 |
|
* @return ArticleGenerator |
98 |
|
*/ |
99 |
|
protected function createGenerator() |
100 |
|
{ |
101 |
|
$filesystem = $this->getContainer()->get('filesystem'); |
102 |
|
$registry = $this->getContainer()->get('doctrine'); |
103 |
|
|
104 |
|
return new ArticleGenerator($filesystem, $registry, '/article', $this->parentPages, $this->assistant, $this->getContainer()); |
105 |
|
} |
106 |
|
|
107 |
|
/** |
108 |
|
* Do the interaction with the end user. |
src/Kunstmaan/GeneratorBundle/Command/GenerateDefaultPagePartsCommand.php 1 location
|
@@ 148-154 (lines=7) @@
|
145 |
|
* |
146 |
|
* @return DefaultPagePartGenerator |
147 |
|
*/ |
148 |
|
protected function createGenerator() |
149 |
|
{ |
150 |
|
$filesystem = $this->getContainer()->get('filesystem'); |
151 |
|
$registry = $this->getContainer()->get('doctrine'); |
152 |
|
|
153 |
|
return new DefaultPagePartGenerator($filesystem, $registry, '/pagepart', $this->assistant, $this->getContainer()); |
154 |
|
} |
155 |
|
} |
156 |
|
|
src/Kunstmaan/GeneratorBundle/Command/GenerateDefaultSiteCommand.php 1 location
|
@@ 155-161 (lines=7) @@
|
152 |
|
* |
153 |
|
* @return DefaultSiteGenerator |
154 |
|
*/ |
155 |
|
protected function createGenerator() |
156 |
|
{ |
157 |
|
$filesystem = $this->getContainer()->get('filesystem'); |
158 |
|
$registry = $this->getContainer()->get('doctrine'); |
159 |
|
|
160 |
|
return new DefaultSiteGenerator($filesystem, $registry, '/defaultsite', $this->assistant, $this->getContainer()); |
161 |
|
} |
162 |
|
} |
163 |
|
|
src/Kunstmaan/GeneratorBundle/Command/GenerateEntityCommand.php 1 location
|
@@ 69-75 (lines=7) @@
|
66 |
|
/** |
67 |
|
* @return DefaultEntityGenerator |
68 |
|
*/ |
69 |
|
protected function createGenerator() |
70 |
|
{ |
71 |
|
$filesystem = $this->getContainer()->get('filesystem'); |
72 |
|
$registry = $this->getContainer()->get('doctrine'); |
73 |
|
|
74 |
|
return new DefaultEntityGenerator($filesystem, $registry, '/entity', $this->assistant, $this->getContainer()); |
75 |
|
} |
76 |
|
|
77 |
|
/** |
78 |
|
* The text to be displayed on top of the generator. |
src/Kunstmaan/GeneratorBundle/Command/GenerateFormPageCommand.php 1 location
|
@@ 222-228 (lines=7) @@
|
219 |
|
* |
220 |
|
* @return FormPageGenerator |
221 |
|
*/ |
222 |
|
protected function createGenerator() |
223 |
|
{ |
224 |
|
$filesystem = $this->getContainer()->get('filesystem'); |
225 |
|
$registry = $this->getContainer()->get('doctrine'); |
226 |
|
|
227 |
|
return new FormPageGenerator($filesystem, $registry, '/page', $this->assistant, $this->getContainer()); |
228 |
|
} |
229 |
|
} |
230 |
|
|
src/Kunstmaan/GeneratorBundle/Command/GenerateFormPagePartsCommand.php 1 location
|
@@ 109-115 (lines=7) @@
|
106 |
|
* |
107 |
|
* @return DefaultPagePartGenerator |
108 |
|
*/ |
109 |
|
protected function createGenerator() |
110 |
|
{ |
111 |
|
$filesystem = $this->getContainer()->get('filesystem'); |
112 |
|
$registry = $this->getContainer()->get('doctrine'); |
113 |
|
|
114 |
|
return new DefaultPagePartGenerator($filesystem, $registry, '/pagepart', $this->assistant, $this->getContainer()); |
115 |
|
} |
116 |
|
} |
117 |
|
|
src/Kunstmaan/GeneratorBundle/Command/GenerateLayoutCommand.php 1 location
|
@@ 98-104 (lines=7) @@
|
95 |
|
* |
96 |
|
* @return LayoutGenerator |
97 |
|
*/ |
98 |
|
protected function createGenerator() |
99 |
|
{ |
100 |
|
$filesystem = $this->getContainer()->get('filesystem'); |
101 |
|
$registry = $this->getContainer()->get('doctrine'); |
102 |
|
|
103 |
|
return new LayoutGenerator($filesystem, $registry, '/layout', $this->assistant, $this->getContainer()); |
104 |
|
} |
105 |
|
|
106 |
|
/** |
107 |
|
* Check that the command is ran as sub command or not. |
src/Kunstmaan/GeneratorBundle/Command/GeneratePageCommand.php 1 location
|
@@ 235-241 (lines=7) @@
|
232 |
|
* |
233 |
|
* @return PageGenerator |
234 |
|
*/ |
235 |
|
protected function createGenerator() |
236 |
|
{ |
237 |
|
$filesystem = $this->getContainer()->get('filesystem'); |
238 |
|
$registry = $this->getContainer()->get('doctrine'); |
239 |
|
|
240 |
|
return new PageGenerator($filesystem, $registry, '/page', $this->assistant, $this->getContainer()); |
241 |
|
} |
242 |
|
|
243 |
|
/** |
244 |
|
* Get all the available default templates. |
src/Kunstmaan/GeneratorBundle/Command/GeneratePagePartCommand.php 1 location
|
@@ 183-189 (lines=7) @@
|
180 |
|
* |
181 |
|
* @return PagePartGenerator |
182 |
|
*/ |
183 |
|
protected function createGenerator() |
184 |
|
{ |
185 |
|
$filesystem = $this->getContainer()->get('filesystem'); |
186 |
|
$registry = $this->getContainer()->get('doctrine'); |
187 |
|
|
188 |
|
return new PagePartGenerator($filesystem, $registry, '/pagepart', $this->assistant, $this->getContainer()); |
189 |
|
} |
190 |
|
} |
191 |
|
|
src/Kunstmaan/GeneratorBundle/Command/GenerateConfigCommand.php 1 location
|
@@ 89-95 (lines=7) @@
|
86 |
|
/** |
87 |
|
* @return ConfigGenerator |
88 |
|
*/ |
89 |
|
protected function createGenerator() |
90 |
|
{ |
91 |
|
$filesystem = $this->getContainer()->get('filesystem'); |
92 |
|
$registry = $this->getContainer()->get('doctrine'); |
93 |
|
|
94 |
|
return new ConfigGenerator($filesystem, $registry, '/config', $this->assistant, $this->getContainer()); |
95 |
|
} |
96 |
|
} |
97 |
|
|