forked from wallabag/wallabag
Add ObjectManagedLoader for PHPStan
This commit is contained in:
13
tests/object-manager.php
Normal file
13
tests/object-manager.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Required for PHPStan.
|
||||
*
|
||||
* @see https://github.com/phpstan/phpstan-doctrine#configuration
|
||||
*/
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
$kernel = new AppKernel('test', true);
|
||||
$kernel->boot();
|
||||
|
||||
return $kernel->getContainer()->get('doctrine')->getManager();
|
||||
Reference in New Issue
Block a user