Rename namespace for shorter name

This commit is contained in:
Tim 2020-07-25 17:40:08 +02:00
parent a3b201dc3c
commit 4b3cb50b1f
6 changed files with 15 additions and 16 deletions

View File

@ -1,9 +1,13 @@
<?php <?php
namespace Ardent\ArdentParameterBundle;
namespace Ardent\ParameterBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle; use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
* Bundle.
*/
class ArdentParameterBundle extends Bundle class ArdentParameterBundle extends Bundle
{ {
} }

View File

@ -1,8 +1,8 @@
<?php <?php
namespace Ardent\ArdentParameterBundle\Controller; namespace Ardent\ParameterBundle\Controller;
use Ardent\ArdentParameterBundle\Service\ParameterService; use Ardent\ParameterBundle\Service\ParameterService;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Form\Extension\Core\Type\CheckboxType; use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType; use Symfony\Component\Form\Extension\Core\Type\ChoiceType;

View File

@ -1,10 +0,0 @@
<?php
namespace Ardent\ArdentParameterBundle\Controller;
class test
{
}

View File

@ -1,7 +1,8 @@
<?php <?php
namespace Ardent\ArdentParameterBundle\DependencyInjection; namespace Ardent\ParameterBundle\DependencyInjection;
use Ardent\ParameterBundle\Entity\Parameter;
use Symfony\Component\Config\FileLocator; use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\Extension; use Symfony\Component\DependencyInjection\Extension\Extension;
@ -16,5 +17,9 @@ class ArdentParameterExtension extends Extension
new FileLocator(__DIR__.'/../Resources/config') new FileLocator(__DIR__.'/../Resources/config')
); );
$loader->load('services.yaml'); $loader->load('services.yaml');
$this->addAnnotatedClassesToCompile([
Parameter::class,
]);
} }
} }

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Ardent\ArdentParameterBundle\Entity; namespace Ardent\ParameterBundle\Entity;
use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping as ORM;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Ardent\ArdentParameterBundle\Service; namespace Ardent\ParameterBundle\Service;
use Ardent\ParameterBundle\Entity\Parameter; use Ardent\ParameterBundle\Entity\Parameter;
use Doctrine\ORM\EntityManagerInterface; use Doctrine\ORM\EntityManagerInterface;