|
13 | 13 |
|
14 | 14 | use Composer\InstalledVersions; |
15 | 15 | use Doctrine\Bundle\DoctrineBundle\DoctrineBundle; |
16 | | -use Doctrine\Persistence\Reflection\RuntimeReflectionProperty; |
17 | 16 | use PHPUnit\Framework\TestCase; |
18 | 17 | use Symfony\Bundle\FrameworkBundle\FrameworkBundle; |
19 | 18 | use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; |
@@ -197,74 +196,6 @@ public function getProjectDir(): string |
197 | 196 | } |
198 | 197 | } |
199 | 198 |
|
200 | | -class TestXmlEntityRegeneratorKernel extends Kernel |
201 | | -{ |
202 | | - use MicroKernelTrait; |
203 | | - |
204 | | - public function registerBundles(): array |
205 | | - { |
206 | | - return [ |
207 | | - new FrameworkBundle(), |
208 | | - new DoctrineBundle(), |
209 | | - ]; |
210 | | - } |
211 | | - |
212 | | - protected function configureRoutes(RouteCollectionBuilder $routes): void |
213 | | - { |
214 | | - } |
215 | | - |
216 | | - protected function configureContainer(ContainerBuilder $c, LoaderInterface $loader): void |
217 | | - { |
218 | | - $c->loadFromExtension('framework', [ |
219 | | - 'secret' => 123, |
220 | | - 'router' => [ |
221 | | - 'utf8' => true, |
222 | | - ], |
223 | | - 'http_method_override' => false, |
224 | | - 'handle_all_throwables' => true, |
225 | | - 'php_errors' => [ |
226 | | - 'log' => true, |
227 | | - ], |
228 | | - ]); |
229 | | - |
230 | | - $dbal = [ |
231 | | - 'driver' => 'pdo_sqlite', |
232 | | - 'url' => 'sqlite:///fake', |
233 | | - ]; |
234 | | - |
235 | | - $orm = [ |
236 | | - 'auto_generate_proxy_classes' => true, |
237 | | - 'mappings' => [ |
238 | | - 'EntityRegenerator' => [ |
239 | | - 'is_bundle' => false, |
240 | | - 'type' => 'xml', |
241 | | - 'dir' => '%kernel.project_dir%/config/doctrine', |
242 | | - 'prefix' => 'Symfony\Bundle\MakerBundle\Tests\tmp\current_project_xml\src\Entity', |
243 | | - 'alias' => 'EntityRegeneratorApp', |
244 | | - ], |
245 | | - ], |
246 | | - 'controller_resolver' => [ |
247 | | - 'auto_mapping' => false, |
248 | | - ], |
249 | | - ]; |
250 | | - |
251 | | - /* @legacy Remove conditional when doctrine/persistence <3.1 are no longer supported. */ |
252 | | - if (class_exists(RuntimeReflectionProperty::class)) { |
253 | | - $orm['enable_lazy_ghost_objects'] = true; |
254 | | - } |
255 | | - |
256 | | - $c->prependExtensionConfig('doctrine', [ |
257 | | - 'dbal' => $dbal, |
258 | | - 'orm' => $orm, |
259 | | - ]); |
260 | | - } |
261 | | - |
262 | | - public function getProjectDir(): string |
263 | | - { |
264 | | - return __DIR__.'/../tmp/current_project_xml'; |
265 | | - } |
266 | | -} |
267 | | - |
268 | 199 | class AllButTraitsIterator extends \RecursiveFilterIterator |
269 | 200 | { |
270 | 201 | public function accept(): bool |
|
0 commit comments