Skip to content

Commit 3830a22

Browse files
committed
[DEV] Refactor and add comments
1 parent 1f8d1a6 commit 3830a22

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

app/bootstrap.php

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
<?php
2-
2+
/**
3+
* Bootstrap file.
4+
*
5+
* Require composer autolader.
6+
* Create PSR-11 compliant container and return it.
7+
*/
38
set_time_limit(0);
49

510
require __DIR__ . '/../vendor/autoload.php';
611

712
$containerBuilder = new DI\ContainerBuilder();
813
$containerBuilder->addDefinitions(__DIR__ . '/config/container.php');
9-
return $containerBuilder->build();
14+
15+
/**
16+
* @var \Psr\Container\ContainerInterface $container
17+
*/
18+
$container = $containerBuilder->build();
19+
return $container;

app/console.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
*/
66
$container = require __DIR__ . '/bootstrap.php';
77

8-
$application = $container->get('app');
9-
$application->run();
8+
9+
$container->get('app')->run();

0 commit comments

Comments
 (0)