@@ -13,14 +13,14 @@ |
||
13 | 13 | namespace Fabrica\Bundle\CoreBundle\Command; |
14 | 14 | |
15 | 15 | use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; |
16 | -use Symfony\Component\Console\Input\InputInterface; |
|
17 | 16 | use Symfony\Component\Console\Input\InputArgument; |
17 | +use Symfony\Component\Console\Input\InputInterface; |
|
18 | 18 | use Symfony\Component\Console\Input\InputOption; |
19 | 19 | use Symfony\Component\Console\Output\OutputInterface; |
20 | 20 | |
21 | +use Fabrica\Bundle\CoreBundle\Security\CliToken; |
|
21 | 22 | use Fabrica\Models\Code\Project; |
22 | 23 | use Fabrica\Models\Code\User; |
23 | -use Fabrica\Bundle\CoreBundle\Security\CliToken; |
|
24 | 24 | |
25 | 25 | /** |
26 | 26 | * Wrapper for Git command. |
@@ -18,9 +18,6 @@ |
||
18 | 18 | use Doctrine\Common\DataFixtures\AbstractFixture; |
19 | 19 | use Doctrine\Common\DataFixtures\OrderedFixtureInterface; |
20 | 20 | |
21 | -use Fabrica\Bundle\CoreBundle\EventDispatcher\Event\ProjectEvent; |
|
22 | -use Fabrica\Bundle\CoreBundle\EventDispatcher\FabricaEvents; |
|
23 | - |
|
24 | 21 | /** |
25 | 22 | * @author Alexandre Salomé <[email protected]> |
26 | 23 | */ |
@@ -70,6 +70,9 @@ |
||
70 | 70 | $swiftmailer->send($message); |
71 | 71 | } |
72 | 72 | |
73 | + /** |
|
74 | + * @param string $blockName |
|
75 | + */ |
|
73 | 76 | protected function renderTwigBlock(\Twig_Template $template, $blockName, $context = array()) |
74 | 77 | { |
75 | 78 | foreach ($template->getEnvironment()->getGlobals() as $key => $value) { |
@@ -14,8 +14,8 @@ |
||
14 | 14 | |
15 | 15 | use Symfony\Bundle\FrameworkBundle\Client as BaseClient; |
16 | 16 | |
17 | -use Fabrica\Bundle\CoreBundle\Git\RepositoryPool; |
|
18 | 17 | use Fabrica\Bundle\CoreBundle\Git\HookInjector; |
18 | +use Fabrica\Bundle\CoreBundle\Git\RepositoryPool; |
|
19 | 19 | use Fabrica\Bundle\CoreBundle\Git\ShellHandler; |
20 | 20 | |
21 | 21 | /** |
@@ -12,11 +12,11 @@ |
||
12 | 12 | |
13 | 13 | namespace Fabrica\Bundle\CoreBundle\Test; |
14 | 14 | |
15 | -use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; |
|
15 | +use Symfony\Bundle\FrameworkBundle\Client; |
|
16 | 16 | use Symfony\Bundle\FrameworkBundle\Console\Application; |
17 | +use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; |
|
17 | 18 | use Symfony\Component\Console\Input\StringInput; |
18 | 19 | use Symfony\Component\Console\Output\StreamOutput; |
19 | -use Symfony\Bundle\FrameworkBundle\Client; |
|
20 | 20 | |
21 | 21 | /** |
22 | 22 | * Base class for testing the CLI tools. |
@@ -12,9 +12,9 @@ |
||
12 | 12 | |
13 | 13 | namespace Fabrica\Bundle\CoreBundle\Validation\Constraints; |
14 | 14 | |
15 | +use Doctrine\Bundle\DoctrineBundle\Registry; |
|
15 | 16 | use Symfony\Component\Validator\Constraint; |
16 | 17 | use Symfony\Component\Validator\ConstraintValidator; |
17 | -use Doctrine\Bundle\DoctrineBundle\Registry; |
|
18 | 18 | |
19 | 19 | class NewEmailValidator extends ConstraintValidator |
20 | 20 | { |
@@ -53,6 +53,8 @@ |
||
53 | 53 | |
54 | 54 | /** |
55 | 55 | * Marks a job as finished, successful or not. |
56 | + * @param boolean $success |
|
57 | + * @return void |
|
56 | 58 | */ |
57 | 59 | public function finish($id, $success, $message); |
58 | 60 | } |
@@ -12,8 +12,6 @@ |
||
12 | 12 | |
13 | 13 | namespace Fabrica\Bundle\JobBundle\Storage; |
14 | 14 | |
15 | -use Fabrica\Bundle\JobBundle\Job\Job; |
|
16 | - |
|
17 | 15 | /** |
18 | 16 | * The definition of a storage for jobs. |
19 | 17 | */ |
@@ -12,16 +12,13 @@ |
||
12 | 12 | |
13 | 13 | namespace Fabrica\Bundle\WebsiteBundle\Controller; |
14 | 14 | |
15 | -use Fabrica\Models\Code\Project; |
|
16 | -use Fabrica\Models\Code\ProjectGitAccess; |
|
17 | -use Fabrica\Models\Code\UserRoleProject; |
|
18 | 15 | use Fabrica\Bundle\CoreBundle\EventDispatcher\Event\ProjectEvent; |
19 | 16 | use Fabrica\Bundle\CoreBundle\EventDispatcher\FabricaEvents; |
20 | 17 | use Fabrica\Bundle\CoreBundle\Job\DeleteReferenceJob; |
21 | -use Fabrica\Component\Pagination\Adapter\GitLogAdapter; |
|
22 | -use Fabrica\Component\Pagination\Pager; |
|
18 | +use Fabrica\Models\Code\Project; |
|
19 | +use Fabrica\Models\Code\ProjectGitAccess; |
|
20 | +use Fabrica\Models\Code\UserRoleProject; |
|
23 | 21 | use Fabrica\Tools\Programs\Git\Blob; |
24 | -use Fabrica\Tools\Programs\Git\Reference; |
|
25 | 22 | use Fabrica\Tools\Programs\Git\Tree; |
26 | 23 | use Symfony\Component\HttpFoundation\Request; |
27 | 24 |
@@ -14,14 +14,10 @@ |
||
14 | 14 | |
15 | 15 | use Symfony\Component\Form\AbstractType; |
16 | 16 | use Symfony\Component\Form\FormBuilderInterface; |
17 | -use Symfony\Component\Form\FormEvent; |
|
18 | -use Symfony\Component\Form\FormEvents; |
|
19 | 17 | use Symfony\Component\OptionsResolver\OptionsResolverInterface; |
20 | 18 | use Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface; |
21 | 19 | use Symfony\Component\Security\Core\Validator\Constraints\UserPassword; |
22 | 20 | |
23 | -use Fabrica\Models\Code\User; |
|
24 | - |
|
25 | 21 | /** |
26 | 22 | * @author Julien DIDIER <[email protected]> |
27 | 23 | * @author Alexandre Salomé <[email protected]> |