23 lines
618 B
PHP
23 lines
618 B
PHP
#!/usr/bin/env php
|
|
<?php
|
|
|
|
use Opdavies\DrupalModuleGenerator\Command\GenerateDrupal7Command;
|
|
use Opdavies\DrupalModuleGenerator\Service\ModuleNameConverter;
|
|
use Opdavies\DrupalModuleGenerator\Service\TestNameConverter;
|
|
use Symfony\Component\Console\Application;
|
|
use Symfony\Component\Finder\Finder;
|
|
|
|
require_once __DIR__.'/../vendor/autoload.php';
|
|
|
|
$app = new Application();
|
|
|
|
$finder = new Finder();
|
|
$moduleNameConverter = new ModuleNameConverter();
|
|
$testNameConverter = new TestNameConverter();
|
|
|
|
$app->addCommands([
|
|
new GenerateDrupal7Command($finder, $moduleNameConverter, $testNameConverter),
|
|
]);
|
|
|
|
$app->run();
|