@@ -51,6 +51,9 @@ discard block |
||
| 51 | 51 | } |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | + /** |
|
| 55 | + * @param boolean $useFactoryMethod |
|
| 56 | + */ |
|
| 54 | 57 | private function setupLoader(ContainerBuilder $container, $name, array $loaderConfig, $useFactoryMethod) |
| 55 | 58 | { |
| 56 | 59 | $repositoryService = $this->createLoaderRepository($container, $name, $loaderConfig, $useFactoryMethod); |
@@ -66,6 +69,9 @@ discard block |
||
| 66 | 69 | ->replaceArgument(2, !empty($loaderConfig['locale_callable']) ? new Reference($loaderConfig['locale_callable']) : null); |
| 67 | 70 | } |
| 68 | 71 | |
| 72 | + /** |
|
| 73 | + * @return string |
|
| 74 | + */ |
|
| 69 | 75 | private function createLoaderRepository(ContainerBuilder $container, $loaderName, array $loaderConfig, $useFactoryMethod) |
| 70 | 76 | { |
| 71 | 77 | switch ($loaderConfig['type']) { |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | * Parses a token and returns a node. |
| 38 | 38 | * |
| 39 | 39 | * @param Twig_Token $token A Twig_Token instance |
| 40 | - * @return null|Twig_Token A Twig_NodeInterface instance |
|
| 40 | + * @return null|Node\DeferReference A Twig_NodeInterface instance |
|
| 41 | 41 | */ |
| 42 | 42 | public function parse(Twig_Token $token) |
| 43 | 43 | { |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | |
| 126 | 126 | /** |
| 127 | 127 | * @param Twig_Token $token |
| 128 | - * @param $reference |
|
| 128 | + * @param string $reference |
|
| 129 | 129 | * @return string |
| 130 | 130 | */ |
| 131 | 131 | private function createUniqueBlockName(Twig_Token $token, $reference) |