-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmagegen.php
executable file
·33 lines (24 loc) · 1.02 KB
/
magegen.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/**
* Copyright Skywire. All rights reserved.
* See LICENSE.txt for license details.
*
* @author Skywire Core Team
* @copyright Copyright (c) 2021 Skywire (http://www.skywire.co.uk)
*/
declare(strict_types=1);
require __DIR__ . '/vendor/autoload.php';
use Symfony\Component\Console\Application;
$application = new Application('MageGen');
$loader = new \Twig\Loader\FilesystemLoader(__DIR__ . '/templates');
$twig = new \Twig\Environment($loader, []);
$application->add(new \MageGen\MakeModuleCommand($twig));
$application->add(new \MageGen\MakePluginCommand($twig));
$application->add(new \MageGen\MakeEntityCommand($twig));
$application->add(new \MageGen\MakeRepositoryCommand($twig));
$application->add(new \MageGen\MakeSchemaCommand($twig));
$application->add(new \MageGen\MakeExtensionAttributeCommand($twig));
$application->add(new \MageGen\MakeAclCommand($twig));
$application->add(new \MageGen\MakeDataPatchCommand($twig));
$application->add(new \MageGen\MakeSchemaPatchCommand($twig));
$application->run();