@@ -5,15 +5,10 @@ |
||
5 | 5 | |
6 | 6 | use Chamilo\CoreBundle\Entity\AccessUrl; |
7 | 7 | use Sylius\Bundle\SettingsBundle\Event\SettingsEvent; |
8 | -use Doctrine\Common\Cache\Cache; |
|
9 | -use Doctrine\Common\Persistence\ObjectManager; |
|
10 | 8 | use Sylius\Bundle\SettingsBundle\Model\Settings; |
11 | -use Sylius\Bundle\SettingsBundle\Schema\SchemaRegistryInterface; |
|
12 | 9 | use Sylius\Bundle\SettingsBundle\Schema\SettingsBuilder; |
13 | -use Sylius\Component\Resource\Repository\RepositoryInterface; |
|
14 | 10 | use Symfony\Component\Validator\ConstraintViolationListInterface; |
15 | 11 | use Symfony\Component\Validator\Exception\ValidatorException; |
16 | -use Symfony\Component\Validator\ValidatorInterface; |
|
17 | 12 | use Sylius\Bundle\SettingsBundle\Manager\SettingsManager as SyliusSettingsManager; |
18 | 13 | use Chamilo\CoreBundle\Entity\SettingsCurrent; |
19 | 14 |
@@ -2,7 +2,6 @@ |
||
2 | 2 | /* For licensing terms, see /license.txt */ |
3 | 3 | |
4 | 4 | use ChamiloSession as Session; |
5 | - |
|
6 | 5 | use Chamilo\UserBundle\Entity\User; |
7 | 6 | |
8 | 7 | /** |
@@ -10,8 +10,6 @@ |
||
10 | 10 | |
11 | 11 | use Symfony\Component\HttpKernel\Event\FilterControllerEvent; |
12 | 12 | use Symfony\Component\HttpKernel\Event\GetResponseEvent; |
13 | -use Symfony\Component\Security\Core\User\User; |
|
14 | -use Symfony\Component\Security\Core\User\UserInterface; |
|
15 | 13 | |
16 | 14 | class ContextListener { |
17 | 15 |
@@ -8,13 +8,7 @@ |
||
8 | 8 | namespace Chamilo\ThemeBundle\Theme; |
9 | 9 | |
10 | 10 | |
11 | -use Assetic\Asset\AssetCollection; |
|
12 | -use Assetic\Asset\AssetReference; |
|
13 | -use Assetic\Factory\AssetFactory; |
|
14 | -use Assetic\Factory\LazyAssetManager; |
|
15 | -use Assetic\Factory\Resource\FileResource; |
|
16 | 11 | use Chamilo\FoundationBundle\Util\DependencyResolverInterface; |
17 | -use Symfony\Bundle\AsseticBundle\Config\AsseticResource; |
|
18 | 12 | use Symfony\Component\DependencyInjection\Container; |
19 | 13 | use Chamilo\FoundationBundle\Util\DependencyResolver; |
20 | 14 | use Symfony\Component\HttpKernel\Config\FileLocator; |
@@ -11,15 +11,11 @@ |
||
11 | 11 | use Doctrine\ORM\Event\LifecycleEventArgs; |
12 | 12 | use Doctrine\ORM\Mapping as ORM; |
13 | 13 | use Sonata\UserBundle\Entity\BaseUser as BaseUser; |
14 | -use Sylius\Component\Attribute\Model\AttributeSubjectInterface; |
|
15 | 14 | use Sylius\Component\Attribute\Model\AttributeValueInterface; |
16 | 15 | use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; |
17 | -use Symfony\Component\HttpFoundation\File\File; |
|
18 | 16 | use Symfony\Component\Security\Core\User\UserInterface; |
19 | 17 | use Symfony\Component\Validator\Constraints as Assert; |
20 | 18 | use Symfony\Component\Validator\Mapping\ClassMetadata; |
21 | -use Doctrine\Common\Collections\Collection; |
|
22 | - |
|
23 | 19 | use Chamilo\ThemeBundle\Model\UserInterface as ThemeUser; |
24 | 20 | |
25 | 21 | //use Chamilo\CoreBundle\Component\Auth; |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use Sylius\Component\Attribute\Model\AttributeValueInterface; |
7 | 7 | use Symfony\Component\EventDispatcher\EventSubscriberInterface; |
8 | 8 | use Symfony\Component\Form\FormEvent; |
9 | -use Symfony\Component\Form\FormFactoryInterface; |
|
10 | 9 | |
11 | 10 | /** |
12 | 11 | * Class BuildAttributeValueFormListener |
@@ -7,13 +7,8 @@ |
||
7 | 7 | use Symfony\Component\Form\AbstractType; |
8 | 8 | use Symfony\Component\Form\FormBuilderInterface; |
9 | 9 | use Symfony\Component\OptionsResolver\OptionsResolverInterface; |
10 | -use Symfony\Component\Security\Core\SecurityContext; |
|
11 | 10 | use Symfony\Component\OptionsResolver\OptionsResolver; |
12 | 11 | |
13 | -use Symfony\Component\Form\FormEvent; |
|
14 | -use Symfony\Component\Form\FormEvents; |
|
15 | -use Symfony\Component\Security\Core\Validator\Constraints\UserPassword; |
|
16 | - |
|
17 | 12 | /** |
18 | 13 | * Class ProfileType |
19 | 14 | * @package Chamilo\UserBundle\Form |
@@ -5,7 +5,6 @@ |
||
5 | 5 | |
6 | 6 | use Symfony\Component\Security\Core\Encoder\PasswordEncoderInterface; |
7 | 7 | use Symfony\Component\Security\Core\Encoder\BCryptPasswordEncoder; |
8 | -use Symfony\Component\Security\Core\Encoder\EncoderFactory; |
|
9 | 8 | use Symfony\Component\Security\Core\Encoder\MessageDigestPasswordEncoder; |
10 | 9 | use Symfony\Component\Security\Core\Encoder\PlaintextPasswordEncoder; |
11 | 10 |
@@ -9,7 +9,6 @@ |
||
9 | 9 | use Symfony\Component\Routing\Generator\UrlGeneratorInterface; |
10 | 10 | use Symfony\Component\Security\Core\Authorization\AuthorizationChecker; |
11 | 11 | use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage; |
12 | -use Symfony\Component\Routing\Router; |
|
13 | 12 | use Database; |
14 | 13 | |
15 | 14 | /** |