1 | <?php |
||
20 | class Kernel extends BaseKernel |
||
21 | { |
||
22 | /** |
||
23 | * Construct the kernel. |
||
24 | * |
||
25 | * @param string $environment |
||
26 | * @param boolean $debug |
||
27 | */ |
||
28 | 11 | public function __construct($environment, $debug) |
|
35 | |||
36 | /** |
||
37 | * Register bundles. |
||
38 | * |
||
39 | * @return array |
||
|
|||
40 | */ |
||
41 | 11 | public function registerBundles() |
|
42 | { |
||
43 | // register bundles for every environment |
||
44 | $bundles = array( |
||
45 | 11 | new \Symfony\Bundle\MonologBundle\MonologBundle(), |
|
46 | 11 | ); |
|
47 | |||
48 | 11 | return $bundles; |
|
49 | } |
||
50 | |||
51 | /** |
||
52 | * Builds the service container. |
||
53 | * |
||
54 | * @return \Symfony\Component\DependencyInjection\TaggedContainerInterface The compiled service container |
||
55 | * |
||
56 | * @throws \RuntimeException |
||
57 | */ |
||
58 | 6 | protected function buildContainer() |
|
65 | |||
66 | /** |
||
67 | * Register container configuration. |
||
68 | * |
||
69 | * @param \Symfony\Component\Config\Loader\LoaderInterface $loader |
||
70 | * |
||
71 | * @return void |
||
72 | */ |
||
73 | 6 | public function registerContainerConfiguration(LoaderInterface $loader) |
|
77 | } |
||
78 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.