1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

Add ObjectManagedLoader for PHPStan

This commit is contained in:
Jeremy Benoist 2023-11-16 09:36:47 +01:00
parent f272481ec4
commit 2149ef4510
No known key found for this signature in database
GPG key ID: 7168D5DD29F38552
10 changed files with 56 additions and 52 deletions

13
tests/object-manager.php Normal file
View 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();