Skip to content

Commit

Permalink
Updated Mammoth + added cli-config.php and edited starter.php for Doc…
Browse files Browse the repository at this point in the history
…trine
  • Loading branch information
ceskyDJ committed Feb 25, 2020
1 parent e55bb3b commit 80cef96
Show file tree
Hide file tree
Showing 4 changed files with 1,971 additions and 234 deletions.
17 changes: 17 additions & 0 deletions cli-config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

declare(strict_types = 1);

use Doctrine\ORM\EntityManager;
use Doctrine\ORM\Tools\Console\ConsoleRunner;

// Load starter for getting ready some stuff
require_once __DIR__."/src/starter.php";

/**
* @var $entityManager EntityManager
* @noinspection PhpUnhandledExceptionInspection
*/
$entityManager = $container->getInstance(EntityManager::class);

return ConsoleRunner::createHelperSet($entityManager);
Loading

0 comments on commit 80cef96

Please sign in to comment.