sergiors/doctrine-console-service-provider

Doctrine ORM Console for Pimple

1.0.0 2017-12-12 18:17 UTC

This package is not auto-updated.

Last update: 2024-11-09 21:01:32 UTC


README

To see the complete documentation, check out Doctrine Console

Install

composer require sergiors/doctrine-console-service-provider "dev-master"

How to use

Create your console file:

use Silex\Application;
use Silex\Provider\DoctrineServiceProvider;
use Sergiors\Silex\Provider\DoctrineCacheServiceProvider;
use Sergiors\Silex\Provider\DoctrineOrmServiceProvider;
use Sergiors\Silex\Provider\ConsoleServiceProvider;
use Sergiors\Silex\Provider\DoctrineConsoleServiceProvider;

$app = new Application();
$app->register(new ConsoleServiceProvider());
$app->register(new DoctrineServiceProvider());
$app->register(new DoctrineCacheServiceProvider());
$app->register(new DoctrineOrmServiceProvider());
$app->register(new DoctrineConsoleServiceProvider());

$app->boot();

$app['console']->run();
php console

Be happy!

License

MIT