Minor - Remove deprecated inheritance + format code

pull/2542/head
jmontoyaa 7 years ago
parent e1242a2b59
commit 4294dae24c
  1. 2
      config/bundles.php
  2. 2
      config/packages/security.yaml
  3. 1
      config/routes/sonata_admin.yaml
  4. 7
      src/AdminBundle/ChamiloAdminBundle.php
  5. 7
      src/ClassificationBundle/ChamiloClassificationBundle.php
  6. 16
      src/MediaBundle/ChamiloMediaBundle.php
  7. 8
      src/NotificationBundle/ChamiloNotificationBundle.php
  8. 8
      src/PageBundle/ChamiloPageBundle.php
  9. 4
      src/SettingsBundle/ChamiloSettingsBundle.php
  10. 15
      src/TimelineBundle/ChamiloTimelineBundle.php
  11. 7
      src/UserBundle/ChamiloUserBundle.php

@ -61,9 +61,9 @@ return [
Http\HttplugBundle\HttplugBundle::class => ['all' => true],
Oneup\FlysystemBundle\OneupFlysystemBundle::class => ['all' => true],
Sonata\CacheBundle\SonataCacheBundle::class => ['all' => true],
Ivory\CKEditorBundle\IvoryCKEditorBundle::class => ['all' => true],
Knp\Bundle\MarkdownBundle\KnpMarkdownBundle::class => ['all' => true],
Sonata\FormatterBundle\SonataFormatterBundle::class => ['all' => true],
HWI\Bundle\OAuthBundle\HWIOAuthBundle::class => ['all' => true],
Liip\ThemeBundle\LiipThemeBundle::class => ['all' => true],
Ivory\CKEditorBundle\IvoryCKEditorBundle::class => ['all' => true],
];

@ -41,12 +41,10 @@ security:
- ROLE_SONATA_PAGE_ADMIN_PAGE_EDIT # if you are not using acl then this line must be uncommented
- ROLE_SONATA_PAGE_ADMIN_BLOCK_EDIT
ROLE_ANONYMOUS: [ROLE_ANONYMOUS]
#access_decision_manager:
# strategy can be: affirmative, unanimous or consensus
# only grant access if none of the voters has denied access
#strategy: unanimous
firewalls:
# disables authentication for assets and the profiler, adapt it according to your needs
dev:

@ -1,4 +1,3 @@
# cross links between kernels
admin_area:
resource: '@SonataAdminBundle/Resources/config/routing/sonata_admin.xml'

@ -12,11 +12,4 @@ use Symfony\Component\HttpKernel\Bundle\Bundle;
*/
class ChamiloAdminBundle extends Bundle
{
/**
* {@inheritdoc}
*/
public function getParent()
{
return 'SonataAdminBundle';
}
}

@ -12,11 +12,4 @@ use Symfony\Component\HttpKernel\Bundle\Bundle;
*/
class ChamiloClassificationBundle extends Bundle
{
/**
* {@inheritdoc}
*/
public function getParent()
{
return 'SonataClassificationBundle';
}
}

@ -1,12 +1,5 @@
<?php
/**
* This file is part of the <name> project.
*
* (c) <yourname> <youremail>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/* For licensing terms, see /license.txt */
namespace Chamilo\MediaBundle;
@ -22,11 +15,4 @@ use Symfony\Component\HttpKernel\Bundle\Bundle;
*/
class ChamiloMediaBundle extends Bundle
{
/**
* {@inheritdoc}
*/
public function getParent()
{
return 'SonataMediaBundle';
}
}

@ -10,11 +10,5 @@ use Symfony\Component\HttpKernel\Bundle\Bundle;
*/
class ChamiloNotificationBundle extends Bundle
{
/**
* {@inheritdoc}
*/
public function getParent()
{
return 'SonataNotificationBundle';
}
}

@ -12,11 +12,5 @@ use Symfony\Component\HttpKernel\Bundle\Bundle;
*/
class ChamiloPageBundle extends Bundle
{
/**
* {@inheritdoc}
*/
public function getParent()
{
return 'SonataPageBundle';
}
}

@ -12,8 +12,4 @@ use Symfony\Component\HttpKernel\Bundle\Bundle;
*/
class ChamiloSettingsBundle extends Bundle
{
public function getParent()
{
return 'SyliusSettingsBundle';
}
}

@ -1,24 +1,15 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\TimelineBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
* This file has been generated by the EasyExtends bundle ( https://sonata-project.org/easy-extends ).
* Class ChamiloTimelineBundle.
*
* References :
* bundles : http://symfony.com/doc/current/book/bundles.html
*
* @author <yourname> <youremail>
* @package Chamilo\TimelineBundle
*/
class ChamiloTimelineBundle extends Bundle
{
/**
* {@inheritdoc}
*/
public function getParent()
{
return 'SonataTimelineBundle';
}
}

@ -12,11 +12,4 @@ use Symfony\Component\HttpKernel\Bundle\Bundle;
*/
class ChamiloUserBundle extends Bundle
{
/**
* {@inheritdoc}
*/
public function getParent()
{
return 'SonataUserBundle';
}
}

Loading…
Cancel
Save