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/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/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 |
|
|