Skip to content

Commit a0c6905

Browse files
author
scrs_zdenek
committed
dev
1 parent c12e6f2 commit a0c6905

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

Bootstrap.php renamed to bin/Console.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,18 @@
22

33
declare(strict_types=1);
44

5+
namespace bin;
6+
7+
use Exception;
8+
use Nette\Bootstrap\Configurator;
59
use Symfony\Component\Console\Application;
610

711

8-
class Bootstrap
12+
class Console
913
{
10-
public static function boot(): Nette\Bootstrap\Configurator
14+
public static function boot(): Configurator
1115
{
12-
$app = new Nette\Bootstrap\Configurator();
16+
$app = new Configurator();
1317
$app->setDebugMode(true);
1418
$app->setTempDirectory(__DIR__ . '/');
1519
$app->addConfig(__DIR__ . '/config.neon');
File renamed without changes.

bin/generator

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/usr/bin/env php
22
<?php
33

4-
require __DIR__ . '/../Bootstrap.php';
4+
use bin\Console;
5+
6+
require __DIR__ . '/Console.php';
57

68
if (
79
!(is_file($file = __DIR__ . '/../vendor/autoload.php') && include $file) &&
@@ -11,4 +13,4 @@ if (
1113
exit(1);
1214
}
1315

14-
exit(Bootstrap::console());
16+
exit(Console::console());

0 commit comments

Comments
 (0)