@@ -3,11 +3,8 @@ |
||
3 | 3 | |
4 | 4 | namespace Chamilo\CourseBundle\Controller; |
5 | 5 | |
6 | -use Chamilo\CoreBundle\Controller\BaseController; |
|
7 | 6 | use Chamilo\CoreBundle\Controller\BaseResourceController; |
8 | -use Knp\Menu\FactoryInterface as MenuFactoryInterface; |
|
9 | 7 | use Knp\Menu\ItemInterface as MenuItemInterface; |
10 | -use Knp\Menu\Renderer\ListRenderer; |
|
11 | 8 | use Symfony\Component\HttpFoundation\Request; |
12 | 9 | use Chamilo\CoreBundle\Entity\Course; |
13 | 10 | use Chamilo\CoreBundle\Entity\Session; |
@@ -4,15 +4,11 @@ |
||
4 | 4 | namespace Chamilo\CourseBundle\Controller; |
5 | 5 | |
6 | 6 | use Chamilo\CoreBundle\Entity\Resource\AbstractResource; |
7 | -use Doctrine\ORM\QueryBuilder; |
|
8 | 7 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
9 | -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; |
|
10 | 8 | use Symfony\Component\HttpFoundation\Response; |
11 | -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
|
12 | 9 | use APY\DataGridBundle\Grid\Source\Entity; |
13 | 10 | use APY\DataGridBundle\Grid\Export\CSVExport; |
14 | 11 | use APY\DataGridBundle\Grid\Export\ExcelExport; |
15 | -use APY\DataGridBundle\Grid\Export\PHPExcelPDFExport; |
|
16 | 12 | //use APY\DataGridBundle\Grid\Export\XmlExport; |
17 | 13 | |
18 | 14 | use APY\DataGridBundle\Grid\Action\MassAction; |
@@ -7,8 +7,6 @@ |
||
7 | 7 | use Symfony\Component\Validator\Constraints as Assert; |
8 | 8 | use Symfony\Component\Validator\Mapping\ClassMetadata; |
9 | 9 | use Chamilo\CoreBundle\Entity\Course; |
10 | -use Symfony\Component\HttpFoundation\File\UploadedFile; |
|
11 | -use APY\DataGridBundle\Grid\Mapping as GRID; |
|
12 | 10 | |
13 | 11 | /** |
14 | 12 | * CTool |
@@ -3,14 +3,8 @@ |
||
3 | 3 | |
4 | 4 | namespace Chamilo\CourseBundle\Entity\Manager; |
5 | 5 | |
6 | -use Chamilo\CoreBundle\Entity\Repository\CourseRepository; |
|
7 | 6 | use Chamilo\CourseBundle\Entity\CGroupInfo; |
8 | 7 | use Sonata\CoreBundle\Model\BaseEntityManager; |
9 | -use Chamilo\CoreBundle\Entity\Course; |
|
10 | -use Chamilo\UserBundle\Entity\User; |
|
11 | -use Sonata\DatagridBundle\Pager\Doctrine\pager; |
|
12 | -use Sonata\DatagridBundle\ProxyQuery\Doctrine\ProxyQuery; |
|
13 | -use Doctrine\Common\Collections\Criteria; |
|
14 | 8 | |
15 | 9 | /** |
16 | 10 | * Class CourseManager |
@@ -7,9 +7,7 @@ discard block |
||
7 | 7 | use Chamilo\CoreBundle\Security\Authorization\Voter\CourseVoter; |
8 | 8 | use Chamilo\CoreBundle\Security\Authorization\Voter\SessionVoter; |
9 | 9 | use Chamilo\CoreBundle\Security\Authorization\Voter\GroupVoter; |
10 | -use Chamilo\CoreBundle\Framework\Container; |
|
11 | 10 | use Doctrine\ORM\EntityManager; |
12 | -use Chamilo\UserBundle\Entity\User; |
|
13 | 11 | use Symfony\Component\HttpFoundation\Request; |
14 | 12 | use Symfony\Component\HttpKernel\Event\GetResponseEvent; |
15 | 13 | use Symfony\Component\HttpKernel\Event\FilterResponseEvent; |
@@ -19,7 +17,6 @@ discard block |
||
19 | 17 | use Chamilo\CoreBundle\Entity\Course; |
20 | 18 | use Chamilo\CoreBundle\Entity\Session; |
21 | 19 | use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
22 | -use Symfony\Component\HttpKernel\HttpKernelInterface; |
|
23 | 20 | use Symfony\Component\Security\Core\Exception\AccessDeniedException; |
24 | 21 | use Chamilo\CourseBundle\Event\CourseAccess; |
25 | 22 | use Chamilo\CourseBundle\Event\SessionAccess; |
@@ -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 | /** |
@@ -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 | /** |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use Sylius\Bundle\FlowBundle\Process\Context\ProcessContextInterface; |
7 | 7 | use Chamilo\CoreBundle\Migrations\Data\ORM\LoadAdminUserData; |
8 | 8 | //use Oro\Bundle\ConfigBundle\Config\ConfigManager; |
9 | -use Sylius\Bundle\SettingsBundle\Manager\SettingsManager; |
|
10 | 9 | use Symfony\Component\HttpFoundation\Response; |
11 | 10 | use Chamilo\UserBundle\Entity\User; |
12 | 11 |
@@ -4,23 +4,14 @@ discard block |
||
4 | 4 | namespace Chamilo\NotebookBundle\Controller; |
5 | 5 | |
6 | 6 | use Chamilo\CoreBundle\Entity\Resource\AbstractResource; |
7 | -use Chamilo\CoreBundle\Entity\Resource\ResourceLink; |
|
8 | -use Chamilo\CoreBundle\Entity\Resource\ResourceNode; |
|
9 | 7 | use Chamilo\CoreBundle\Entity\Resource\ResourceRights; |
10 | -use Chamilo\CoreBundle\Entity\Tool; |
|
11 | -use Chamilo\CoreBundle\Entity\ToolResourceRights; |
|
12 | 8 | use Chamilo\CoreBundle\Security\Authorization\Voter\ResourceNodeVoter; |
13 | 9 | use Chamilo\NotebookBundle\Tool\Notebook; |
14 | -use Doctrine\ORM\QueryBuilder; |
|
15 | 10 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
16 | -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; |
|
17 | -use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException; |
|
18 | 11 | use Symfony\Component\HttpFoundation\Response; |
19 | -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
|
20 | 12 | use APY\DataGridBundle\Grid\Source\Entity; |
21 | 13 | use APY\DataGridBundle\Grid\Export\CSVExport; |
22 | 14 | use APY\DataGridBundle\Grid\Export\ExcelExport; |
23 | -use APY\DataGridBundle\Grid\Export\PHPExcelPDFExport; |
|
24 | 15 | //use APY\DataGridBundle\Grid\Export\XmlExport; |
25 | 16 | |
26 | 17 | use APY\DataGridBundle\Grid\Action\MassAction; |
@@ -30,8 +21,6 @@ discard block |
||
30 | 21 | use Chamilo\NotebookBundle\Entity\NotebookManager; |
31 | 22 | use Chamilo\NotebookBundle\Entity\CNotebook; |
32 | 23 | use Chamilo\CourseBundle\Controller\ToolBaseCrudController; |
33 | -use Symfony\Component\Security\Acl\Permission\MaskBuilder; |
|
34 | -use Symfony\Component\Translation\Exception\NotFoundResourceException; |
|
35 | 24 | |
36 | 25 | /** |
37 | 26 | * Class NotebookController |