1 | <?php |
||
7 | class Application extends Container |
||
8 | { |
||
9 | const NAME = "Wandu"; |
||
10 | const VERSION = "4.0-dev"; |
||
11 | |||
12 | /** @var \Wandu\Foundation\Contracts\Bootstrap */ |
||
13 | protected $bootstrapper; |
||
14 | |||
15 | 6 | public function __construct(Bootstrap $bootstrapper) |
|
20 | |||
21 | /** |
||
22 | * {@inheritdoc} |
||
23 | */ |
||
24 | 6 | public function boot() |
|
25 | { |
||
26 | 6 | if (!$this->isBooted) { |
|
27 | 6 | foreach ($this->bootstrapper->providers() as $provider) { |
|
28 | $this->register($provider); |
||
29 | } |
||
30 | 6 | $this->bootstrapper->boot($this); |
|
31 | 6 | parent::boot(); |
|
32 | } |
||
33 | 6 | return $this; |
|
34 | } |
||
35 | |||
36 | /** |
||
37 | * @return mixed |
||
38 | */ |
||
39 | 1 | public function execute() |
|
44 | } |
||
45 |