@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Symfony\Component\HttpKernel\Bundle\Bundle as BaseBundle; |
6 | 6 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
7 | -use Symfony\Component\DependencyInjection\Compiler\PassConfig; |
|
8 | 7 | use Knp\RadBundle\DependencyInjection\Compiler; |
9 | 8 | use Symfony\Component\Config\Definition\Builder\NodeParentInterface; |
10 | 9 |
@@ -13,6 +13,7 @@ discard block |
||
13 | 13 | * RadBundle. |
14 | 14 | * |
15 | 15 | * @param NodeParentInterface $rootNode |
16 | + * @return void |
|
16 | 17 | */ |
17 | 18 | public function buildConfiguration(NodeParentInterface $rootNode); |
18 | 19 | |
@@ -21,6 +22,7 @@ discard block |
||
21 | 22 | * |
22 | 23 | * @param array $config, The parsed config |
23 | 24 | * @param ContainerBuilder $container |
25 | + * @return void |
|
24 | 26 | */ |
25 | 27 | public function buildContainer(array $config, ContainerBuilder $container); |
26 | 28 | } |
@@ -71,6 +71,9 @@ |
||
71 | 71 | return $this->doctrine->getManager(); |
72 | 72 | } |
73 | 73 | |
74 | + /** |
|
75 | + * @param string $object |
|
76 | + */ |
|
74 | 77 | public function getRepository($object) |
75 | 78 | { |
76 | 79 | return $this->getManager()->getRepository(is_object($object) ? get_class($object) : $object); |
@@ -63,6 +63,9 @@ |
||
63 | 63 | $container->getDefinition('form.extension')->replaceArgument(2, $typeExtensions); |
64 | 64 | } |
65 | 65 | |
66 | + /** |
|
67 | + * @param string $default |
|
68 | + */ |
|
66 | 69 | private function getAlias($class, $default) |
67 | 70 | { |
68 | 71 | if (!class_exists($class)) { |
@@ -4,8 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; |
6 | 6 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
7 | -use Symfony\Component\DependencyInjection\Container; |
|
8 | -use Symfony\Component\DependencyInjection\Definition; |
|
9 | 7 | use Symfony\Component\HttpKernel\Bundle\BundleInterface; |
10 | 8 | use Knp\RadBundle\DependencyInjection\Definition\FormTypeExtensionDefinitionFactory; |
11 | 9 | use Knp\RadBundle\DependencyInjection\ServiceIdGenerator; |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; |
6 | 6 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
7 | -use Symfony\Component\DependencyInjection\Container; |
|
8 | 7 | use Symfony\Component\HttpKernel\Bundle\BundleInterface; |
9 | 8 | use Knp\RadBundle\Finder\ClassFinder; |
10 | 9 | use Knp\RadBundle\DependencyInjection\Definition\TwigExtensionFactory; |
@@ -24,7 +24,7 @@ |
||
24 | 24 | * Initializes listener. |
25 | 25 | * |
26 | 26 | * @param EngineInterface $templating Templating engine |
27 | - * @param ViewNameDeducer $viewNameDeducer Deduces the view name from controller name |
|
27 | + * @param NameDeducer $viewNameDeducer Deduces the view name from controller name |
|
28 | 28 | * @param MissingViewHandler $missingViewHandler handles missing views |
29 | 29 | */ |
30 | 30 | public function __construct(EngineInterface $templating, NameDeducer $viewNameDeducer, MissingViewHandler $missingViewHandler = null) |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Knp\RadBundle\EventListener; |
4 | 4 | |
5 | 5 | use Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent; |
6 | -use Symfony\Component\HttpFoundation\Request; |
|
7 | 6 | use Knp\RadBundle\View\NameDeducer; |
8 | 7 | use Knp\RadBundle\View\NameDeducer\NotInBundleException; |
9 | 8 | use Knp\RadBundle\View\NameDeducer\NoControllerNameException; |
@@ -15,7 +15,6 @@ discard block |
||
15 | 15 | /** |
16 | 16 | * Initializes context. Every scenario gets its own context object. |
17 | 17 | * |
18 | - * @param array $parameters Suite parameters (set them up through behat.yml) |
|
19 | 18 | */ |
20 | 19 | public function __construct() |
21 | 20 | { |
@@ -158,6 +157,9 @@ discard block |
||
158 | 157 | } |
159 | 158 | } |
160 | 159 | |
160 | + /** |
|
161 | + * @param string $path |
|
162 | + */ |
|
161 | 163 | private function writeContent($path, $content = '') |
162 | 164 | { |
163 | 165 | $this->fs->mkdir(dirname($path)); |
@@ -32,6 +32,9 @@ discard block |
||
32 | 32 | } |
33 | 33 | } |
34 | 34 | |
35 | + /** |
|
36 | + * @param string $purpose |
|
37 | + */ |
|
35 | 38 | private function getFormType($object, $purpose = null) |
36 | 39 | { |
37 | 40 | $currentPurpose = $purpose ? $purpose.'_' : ''; |
@@ -56,6 +59,10 @@ discard block |
||
56 | 59 | return $type; |
57 | 60 | } |
58 | 61 | |
62 | + /** |
|
63 | + * @param string $alias |
|
64 | + * @param string $class |
|
65 | + */ |
|
59 | 66 | private function loadFormType($alias, $class) |
60 | 67 | { |
61 | 68 | $type = $this->getAlias($class, $alias); |
@@ -67,6 +74,9 @@ discard block |
||
67 | 74 | return $type; |
68 | 75 | } |
69 | 76 | |
77 | + /** |
|
78 | + * @return string |
|
79 | + */ |
|
70 | 80 | private function getAlias($class, $default) |
71 | 81 | { |
72 | 82 | if (!class_exists($class)) { |
@@ -441,6 +441,9 @@ |
||
441 | 441 | ); |
442 | 442 | } |
443 | 443 | |
444 | + /** |
|
445 | + * @return string |
|
446 | + */ |
|
444 | 447 | private function getPatternPrefix($class, $mapping) |
445 | 448 | { |
446 | 449 | if (is_string($mapping)) { |