We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f8d1a6 commit 3830a22Copy full SHA for 3830a22
app/bootstrap.php
@@ -1,9 +1,19 @@
1
<?php
2
-
+/**
3
+ * Bootstrap file.
4
+ *
5
+ * Require composer autolader.
6
+ * Create PSR-11 compliant container and return it.
7
+ */
8
set_time_limit(0);
9
10
require __DIR__ . '/../vendor/autoload.php';
11
12
$containerBuilder = new DI\ContainerBuilder();
13
$containerBuilder->addDefinitions(__DIR__ . '/config/container.php');
-return $containerBuilder->build();
14
+
15
16
+ * @var \Psr\Container\ContainerInterface $container
17
18
+$container = $containerBuilder->build();
19
+return $container;
app/console.php
@@ -5,5 +5,5 @@
*/
$container = require __DIR__ . '/bootstrap.php';
-$application = $container->get('app');
-$application->run();
+$container->get('app')->run();
0 commit comments