1 | <?php |
||
20 | class Kernel extends BaseKernel |
||
21 | { |
||
22 | /** |
||
23 | * Construct the kernel. |
||
24 | * |
||
25 | * @param string $environment |
||
26 | * @param boolean $debug |
||
27 | * |
||
28 | * @return void |
||
|
|||
29 | */ |
||
30 | public function __construct($environment, $debug) |
||
37 | |||
38 | /** |
||
39 | * Register bundles. |
||
40 | * |
||
41 | * @return array |
||
42 | */ |
||
43 | public function registerBundles() |
||
56 | |||
57 | /** |
||
58 | * Builds the service container. |
||
59 | * |
||
60 | * @return \Symfony\Component\DependencyInjection\TaggedContainerInterface The compiled service container |
||
61 | * |
||
62 | * @throws \RuntimeException |
||
63 | */ |
||
64 | protected function buildContainer() |
||
71 | |||
72 | /** |
||
73 | * Register container configuration. |
||
74 | * |
||
75 | * @param \Symfony\Component\Config\Loader\LoaderInterface $loader |
||
76 | * |
||
77 | * @return void |
||
78 | */ |
||
79 | public function registerContainerConfiguration(LoaderInterface $loader) |
||
83 | } |
||
84 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.