add chapter about data repositories, and start work on perfomance chapter
This commit is contained in:
parent
eb20213b94
commit
9a1f78947b
165 changed files with 14028 additions and 2028 deletions
13
implementation/16-data-repository/cli-config.php
Normal file
13
implementation/16-data-repository/cli-config.php
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Doctrine\ORM\Tools\Console\ConsoleRunner;
|
||||
use Lubian\NoFramework\Factory\FileSystemSettingsProvider;
|
||||
use Lubian\NoFramework\Factory\SettingsContainerProvider;
|
||||
|
||||
$settingsProvider = new FileSystemSettingsProvider(__DIR__ . '/config/settings.php');
|
||||
$container = (new SettingsContainerProvider($settingsProvider))->getContainer();
|
||||
|
||||
return ConsoleRunner::createHelperSet($container->get(EntityManagerInterface::class));
|
Loading…
Add table
Add a link
Reference in a new issue