1 | <?php |
||
7 | class Application extends Container |
||
8 | { |
||
9 | const NAME = "Wandu"; |
||
10 | const VERSION = "3.1-dev"; |
||
11 | |||
12 | /** @var \Wandu\Foundation\Contracts\KernelInterface */ |
||
13 | protected $kernel; |
||
14 | |||
15 | /** |
||
16 | * @param \Wandu\Foundation\Contracts\KernelInterface $kernel |
||
17 | */ |
||
18 | 4 | public function __construct(KernelInterface $kernel) |
|
25 | |||
26 | /** |
||
27 | * {@inheritdoc} |
||
28 | */ |
||
29 | 4 | public function boot() |
|
30 | { |
||
31 | 4 | if (!$this->isBooted) { |
|
32 | 4 | $this->kernel->boot($this); |
|
33 | 4 | parent::boot(); |
|
34 | } |
||
35 | 4 | return $this; |
|
36 | } |
||
37 | |||
38 | /** |
||
39 | * @return mixed |
||
40 | */ |
||
41 | public function execute() |
||
46 | } |
||
47 |