mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
automatic regexp to move namespace CL\Chill => Chill
This commit is contained in:
parent
651577981c
commit
f7d24ae520
@ -1,9 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace CL\Chill\PersonBundle;
|
namespace Chill\PersonBundle;
|
||||||
|
|
||||||
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
||||||
|
|
||||||
class CLChillPersonBundle extends Bundle
|
class ChillPersonBundle extends Bundle
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace CL\Chill\PersonBundle\Controller;
|
namespace Chill\PersonBundle\Controller;
|
||||||
|
|
||||||
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
||||||
|
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace CL\Chill\PersonBundle\Controller;
|
namespace Chill\PersonBundle\Controller;
|
||||||
|
|
||||||
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
||||||
use CL\Chill\PersonBundle\Entity\Person;
|
use Chill\PersonBundle\Entity\Person;
|
||||||
use CL\Chill\PersonBundle\Form\PersonHistoryFileType;
|
use Chill\PersonBundle\Form\PersonHistoryFileType;
|
||||||
use CL\Chill\PersonBundle\Entity\PersonHistoryFile;
|
use Chill\PersonBundle\Entity\PersonHistoryFile;
|
||||||
|
|
||||||
class HistoryController extends Controller
|
class HistoryController extends Controller
|
||||||
{
|
{
|
||||||
@ -17,7 +17,7 @@ class HistoryController extends Controller
|
|||||||
return $this->createNotFoundException('Person not found');
|
return $this->createNotFoundException('Person not found');
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->render('CLChillPersonBundle:History:list.html.twig',
|
return $this->render('ChillPersonBundle:History:list.html.twig',
|
||||||
array('histories' => $person->getHistoriesOrdered(),
|
array('histories' => $person->getHistoriesOrdered(),
|
||||||
'person' => $person));
|
'person' => $person));
|
||||||
|
|
||||||
@ -76,7 +76,7 @@ class HistoryController extends Controller
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
return $this->render('CLChillPersonBundle:History:update.html.twig',
|
return $this->render('ChillPersonBundle:History:update.html.twig',
|
||||||
array('form' => $form->createView(),
|
array('form' => $form->createView(),
|
||||||
'person' => $person ) );
|
'person' => $person ) );
|
||||||
}
|
}
|
||||||
@ -84,7 +84,7 @@ class HistoryController extends Controller
|
|||||||
public function updateAction($id, $historyId){
|
public function updateAction($id, $historyId){
|
||||||
$em = $this->getDoctrine()->getManager();
|
$em = $this->getDoctrine()->getManager();
|
||||||
|
|
||||||
$history = $em->getRepository('CLChillPersonBundle:PersonHistoryFile')
|
$history = $em->getRepository('ChillPersonBundle:PersonHistoryFile')
|
||||||
->find($historyId);
|
->find($historyId);
|
||||||
|
|
||||||
if ($history === null) {
|
if ($history === null) {
|
||||||
@ -147,7 +147,7 @@ class HistoryController extends Controller
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
return $this->render('CLChillPersonBundle:History:update.html.twig',
|
return $this->render('ChillPersonBundle:History:update.html.twig',
|
||||||
array('form' => $form->createView(),
|
array('form' => $form->createView(),
|
||||||
'person' => $person ) );
|
'person' => $person ) );
|
||||||
}
|
}
|
||||||
@ -250,7 +250,7 @@ class HistoryController extends Controller
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
return $this->render('CLChillPersonBundle:History:close.html.twig',
|
return $this->render('ChillPersonBundle:History:close.html.twig',
|
||||||
array(
|
array(
|
||||||
'form' => $form->createView(),
|
'form' => $form->createView(),
|
||||||
'person' => $person,
|
'person' => $person,
|
||||||
@ -260,7 +260,7 @@ class HistoryController extends Controller
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param CL\Chill\PersonBundle\Entity\Person $person
|
* @param Chill\PersonBundle\Entity\Person $person
|
||||||
* @return \Symfony\Component\Validator\ConstraintViolationListInterface
|
* @return \Symfony\Component\Validator\ConstraintViolationListInterface
|
||||||
*/
|
*/
|
||||||
private function _validatePerson(Person $person) {
|
private function _validatePerson(Person $person) {
|
||||||
@ -302,7 +302,7 @@ class HistoryController extends Controller
|
|||||||
|
|
||||||
if ($historyId !== null) {
|
if ($historyId !== null) {
|
||||||
$history = $this->getDoctrine()->getEntityManager()
|
$history = $this->getDoctrine()->getEntityManager()
|
||||||
->getRepository('CLChillPersonBundle:PersonHistoryFile')
|
->getRepository('ChillPersonBundle:PersonHistoryFile')
|
||||||
->find($historyId);
|
->find($historyId);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
@ -387,7 +387,7 @@ class HistoryController extends Controller
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
return $this->render('CLChillPersonBundle:History:open.html.twig',
|
return $this->render('ChillPersonBundle:History:open.html.twig',
|
||||||
array(
|
array(
|
||||||
'form' => $form->createView(),
|
'form' => $form->createView(),
|
||||||
'person' => $person,
|
'person' => $person,
|
||||||
@ -411,7 +411,7 @@ class HistoryController extends Controller
|
|||||||
|
|
||||||
private function _getPerson($id) {
|
private function _getPerson($id) {
|
||||||
return $this->getDoctrine()->getManager()
|
return $this->getDoctrine()->getManager()
|
||||||
->getRepository('CLChillPersonBundle:Person')
|
->getRepository('ChillPersonBundle:Person')
|
||||||
->find($id);
|
->find($id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace CL\Chill\PersonBundle\Controller;
|
namespace Chill\PersonBundle\Controller;
|
||||||
|
|
||||||
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
||||||
use CL\Chill\PersonBundle\Entity\Person;
|
use Chill\PersonBundle\Entity\Person;
|
||||||
use CL\Chill\PersonBundle\Form\PersonType;
|
use Chill\PersonBundle\Form\PersonType;
|
||||||
use CL\Chill\PersonBundle\Form\CreationPersonType;
|
use Chill\PersonBundle\Form\CreationPersonType;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
|
|
||||||
@ -19,7 +19,7 @@ class PersonController extends Controller {
|
|||||||
return $this->createNotFoundException("Person with id $id not found on this server");
|
return $this->createNotFoundException("Person with id $id not found on this server");
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->render('CLChillPersonBundle:Person:view.html.twig',
|
return $this->render('ChillPersonBundle:Person:view.html.twig',
|
||||||
array("person" => $person)
|
array("person" => $person)
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ class PersonController extends Controller {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
return $this->render('CLChillPersonBundle:Person:edit.html.twig',
|
return $this->render('ChillPersonBundle:Person:edit.html.twig',
|
||||||
array('person' => $person,
|
array('person' => $person,
|
||||||
'form' => $form->createView()));
|
'form' => $form->createView()));
|
||||||
}
|
}
|
||||||
@ -64,7 +64,7 @@ class PersonController extends Controller {
|
|||||||
$this->get('session')
|
$this->get('session')
|
||||||
->getFlashBag()->add('danger', 'error' . $errors);
|
->getFlashBag()->add('danger', 'error' . $errors);
|
||||||
|
|
||||||
return $this->render('CLChillPersonBundle:Person:edit.html.twig',
|
return $this->render('ChillPersonBundle:Person:edit.html.twig',
|
||||||
array('person' => $person,
|
array('person' => $person,
|
||||||
'form' => $form->createView()));
|
'form' => $form->createView()));
|
||||||
}
|
}
|
||||||
@ -103,7 +103,7 @@ class PersonController extends Controller {
|
|||||||
$offset = $this->getRequest()->query->getInt('offet', 0);
|
$offset = $this->getRequest()->query->getInt('offet', 0);
|
||||||
$limit = $this->getRequest()->query->getInt('limit', 30);
|
$limit = $this->getRequest()->query->getInt('limit', 30);
|
||||||
|
|
||||||
$dql = 'SELECT p FROM CLChillPersonBundle:Person p'
|
$dql = 'SELECT p FROM ChillPersonBundle:Person p'
|
||||||
. ' WHERE'
|
. ' WHERE'
|
||||||
. ' LOWER(p.name) like LOWER(:q)'
|
. ' LOWER(p.name) like LOWER(:q)'
|
||||||
. ' OR LOWER(p.surname) like LOWER(:q)';
|
. ' OR LOWER(p.surname) like LOWER(:q)';
|
||||||
@ -135,7 +135,7 @@ class PersonController extends Controller {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->render('CLChillPersonBundle:Person:list.html.twig',
|
return $this->render('ChillPersonBundle:Person:list.html.twig',
|
||||||
array(
|
array(
|
||||||
'persons' => $persons,
|
'persons' => $persons,
|
||||||
'pattern' => $q
|
'pattern' => $q
|
||||||
@ -154,7 +154,7 @@ class PersonController extends Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private function _renderNewForm($form) {
|
private function _renderNewForm($form) {
|
||||||
return $this->render('CLChillPersonBundle:Person:create.html.twig',
|
return $this->render('ChillPersonBundle:Person:create.html.twig',
|
||||||
array(
|
array(
|
||||||
'form' => $form->createView()
|
'form' => $form->createView()
|
||||||
));
|
));
|
||||||
@ -163,7 +163,7 @@ class PersonController extends Controller {
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param type $form
|
* @param type $form
|
||||||
* @return \CL\Chill\PersonBundle\Entity\Person
|
* @return \Chill\PersonBundle\Entity\Person
|
||||||
*/
|
*/
|
||||||
private function _bindCreationForm($form) {
|
private function _bindCreationForm($form) {
|
||||||
$date = new \DateTime();
|
$date = new \DateTime();
|
||||||
@ -183,7 +183,7 @@ class PersonController extends Controller {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param \CL\Chill\PersonBundle\Entity\Person $person
|
* @param \Chill\PersonBundle\Entity\Person $person
|
||||||
* @return \Symfony\Component\Validator\ConstraintViolationListInterface
|
* @return \Symfony\Component\Validator\ConstraintViolationListInterface
|
||||||
*/
|
*/
|
||||||
private function _validatePersonAndHistory(Person $person) {
|
private function _validatePersonAndHistory(Person $person) {
|
||||||
@ -253,7 +253,7 @@ class PersonController extends Controller {
|
|||||||
|
|
||||||
$query = $em->createQuery();
|
$query = $em->createQuery();
|
||||||
|
|
||||||
$dql = 'SELECT p from CLChillPersonBundle:Person p WHERE '
|
$dql = 'SELECT p from ChillPersonBundle:Person p WHERE '
|
||||||
. 'LOWER(p.name) LIKE LOWER(:name)'
|
. 'LOWER(p.name) LIKE LOWER(:name)'
|
||||||
. ' OR LOWER(p.surname) LIKE LOWER(:surname)';
|
. ' OR LOWER(p.surname) LIKE LOWER(:surname)';
|
||||||
|
|
||||||
@ -270,7 +270,7 @@ class PersonController extends Controller {
|
|||||||
$alternatePersons = $query->getResult();
|
$alternatePersons = $query->getResult();
|
||||||
|
|
||||||
if (count($alternatePersons) === 0) {
|
if (count($alternatePersons) === 0) {
|
||||||
return $this->forward('CLChillPersonBundle:Person:create');
|
return $this->forward('ChillPersonBundle:Person:create');
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->get('session')->getFlashBag()->add('info',
|
$this->get('session')->getFlashBag()->add('info',
|
||||||
@ -279,7 +279,7 @@ class PersonController extends Controller {
|
|||||||
array('%nb%' => count($alternatePersons)))
|
array('%nb%' => count($alternatePersons)))
|
||||||
);
|
);
|
||||||
|
|
||||||
return $this->render('CLChillPersonBundle:Person:create_review.html.twig',
|
return $this->render('ChillPersonBundle:Person:create_review.html.twig',
|
||||||
array('alternatePersons' => $alternatePersons,
|
array('alternatePersons' => $alternatePersons,
|
||||||
'name' => $form['name']->getData(),
|
'name' => $form['name']->getData(),
|
||||||
'surname' => $form['surname']->getData(),
|
'surname' => $form['surname']->getData(),
|
||||||
@ -328,12 +328,12 @@ class PersonController extends Controller {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* easy getting a person by his id
|
* easy getting a person by his id
|
||||||
* @return \CL\Chill\PersonBundle\Entity\Person
|
* @return \Chill\PersonBundle\Entity\Person
|
||||||
*/
|
*/
|
||||||
private function _getPerson($id) {
|
private function _getPerson($id) {
|
||||||
$em = $this->getDoctrine()->getManager();
|
$em = $this->getDoctrine()->getManager();
|
||||||
|
|
||||||
$person = $em->getRepository('CLChillPersonBundle:Person')
|
$person = $em->getRepository('ChillPersonBundle:Person')
|
||||||
->find($id);
|
->find($id);
|
||||||
|
|
||||||
return $person;
|
return $person;
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace CL\Chill\PersonBundle\DataFixtures\ORM;
|
namespace Chill\PersonBundle\DataFixtures\ORM;
|
||||||
|
|
||||||
use Doctrine\Common\DataFixtures\AbstractFixture;
|
use Doctrine\Common\DataFixtures\AbstractFixture;
|
||||||
use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
|
use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
|
||||||
use Doctrine\Common\Persistence\ObjectManager;
|
use Doctrine\Common\Persistence\ObjectManager;
|
||||||
use CL\Chill\PersonBundle\Entity\Person;
|
use Chill\PersonBundle\Entity\Person;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load people into database
|
* Load people into database
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace CL\Chill\PersonBundle\DependencyInjection;
|
namespace Chill\PersonBundle\DependencyInjection;
|
||||||
|
|
||||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||||
use Symfony\Component\Config\FileLocator;
|
use Symfony\Component\Config\FileLocator;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace CL\Chill\PersonBundle\DependencyInjection;
|
namespace Chill\PersonBundle\DependencyInjection;
|
||||||
|
|
||||||
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
|
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
|
||||||
use Symfony\Component\Config\Definition\ConfigurationInterface;
|
use Symfony\Component\Config\Definition\ConfigurationInterface;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace CL\Chill\PersonBundle\Entity;
|
namespace Chill\PersonBundle\Entity;
|
||||||
|
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
use Symfony\Component\Validator\ExecutionContextInterface;
|
use Symfony\Component\Validator\ExecutionContextInterface;
|
||||||
@ -141,7 +141,7 @@ ou une valeur vide lorsque la donnée nest pas connue*/
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param \CL\Chill\PersonBundle\Entity\PersonHistoryFile $history
|
* @param \Chill\PersonBundle\Entity\PersonHistoryFile $history
|
||||||
* @uses PersonHistoryFile::setPerson
|
* @uses PersonHistoryFile::setPerson
|
||||||
*/
|
*/
|
||||||
public function addHistoryFile(PersonHistoryFile $history) {
|
public function addHistoryFile(PersonHistoryFile $history) {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace CL\Chill\PersonBundle\Entity;
|
namespace Chill\PersonBundle\Entity;
|
||||||
|
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
use Symfony\Component\Validator\ExecutionContextInterface;
|
use Symfony\Component\Validator\ExecutionContextInterface;
|
||||||
@ -36,7 +36,7 @@ class PersonHistoryFile
|
|||||||
private $memo = '';
|
private $memo = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \CL\Chill\PersonBundle\Entity\Person
|
* @var \Chill\PersonBundle\Entity\Person
|
||||||
*/
|
*/
|
||||||
private $person;
|
private $person;
|
||||||
|
|
||||||
@ -176,11 +176,11 @@ class PersonHistoryFile
|
|||||||
*
|
*
|
||||||
* For consistency, you should use Person::addHistoryFile instead.
|
* For consistency, you should use Person::addHistoryFile instead.
|
||||||
*
|
*
|
||||||
* @param \CL\Chill\PersonBundle\Entity\Person $person
|
* @param \Chill\PersonBundle\Entity\Person $person
|
||||||
* @return PersonHistoryFile
|
* @return PersonHistoryFile
|
||||||
* @see Person::addHistoryFile
|
* @see Person::addHistoryFile
|
||||||
*/
|
*/
|
||||||
public function setPerson(\CL\Chill\PersonBundle\Entity\Person $person = null)
|
public function setPerson(\Chill\PersonBundle\Entity\Person $person = null)
|
||||||
{
|
{
|
||||||
$this->person = $person;
|
$this->person = $person;
|
||||||
|
|
||||||
@ -190,7 +190,7 @@ class PersonHistoryFile
|
|||||||
/**
|
/**
|
||||||
* Get person
|
* Get person
|
||||||
*
|
*
|
||||||
* @return \CL\Chill\PersonBundle\Entity\Person
|
* @return \Chill\PersonBundle\Entity\Person
|
||||||
*/
|
*/
|
||||||
public function getPerson()
|
public function getPerson()
|
||||||
{
|
{
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace CL\Chill\PersonBundle\Entity;
|
namespace Chill\PersonBundle\Entity;
|
||||||
|
|
||||||
use Doctrine\ORM\EntityRepository;
|
use Doctrine\ORM\EntityRepository;
|
||||||
|
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace CL\Chill\PersonBundle\Form;
|
namespace Chill\PersonBundle\Form;
|
||||||
|
|
||||||
use Symfony\Component\Form\AbstractType;
|
use Symfony\Component\Form\AbstractType;
|
||||||
use Symfony\Component\Form\FormBuilderInterface;
|
use Symfony\Component\Form\FormBuilderInterface;
|
||||||
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
|
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
|
||||||
use CL\Chill\PersonBundle\Form\Type\CivilType;
|
use Chill\PersonBundle\Form\Type\CivilType;
|
||||||
use CL\Chill\PersonBundle\Form\Type\GenderType;
|
use Chill\PersonBundle\Form\Type\GenderType;
|
||||||
use CL\BelgianNationalNumberBundle\Form\BelgianNationalNumberType;
|
use CL\BelgianNationalNumberBundle\Form\BelgianNationalNumberType;
|
||||||
use Symfony\Component\Form\Extension\Core\DataTransformer\DateTimeToStringTransformer;
|
use Symfony\Component\Form\Extension\Core\DataTransformer\DateTimeToStringTransformer;
|
||||||
|
|
||||||
@ -75,7 +75,7 @@ class CreationPersonType extends AbstractType
|
|||||||
public function setDefaultOptions(OptionsResolverInterface $resolver)
|
public function setDefaultOptions(OptionsResolverInterface $resolver)
|
||||||
{
|
{
|
||||||
// $resolver->setDefaults(array(
|
// $resolver->setDefaults(array(
|
||||||
// 'data_class' => 'CL\Chill\PersonBundle\Entity\Person'
|
// 'data_class' => 'Chill\PersonBundle\Entity\Person'
|
||||||
// ));
|
// ));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace CL\Chill\PersonBundle\Form\DataTransformer;
|
namespace Chill\PersonBundle\Form\DataTransformer;
|
||||||
|
|
||||||
use Symfony\Component\Form\DataTransformerInterface;
|
use Symfony\Component\Form\DataTransformerInterface;
|
||||||
use Symfony\Component\Form\Exception\TransformationFailedException;
|
use Symfony\Component\Form\Exception\TransformationFailedException;
|
||||||
use Doctrine\Common\Persistence\ObjectManager;
|
use Doctrine\Common\Persistence\ObjectManager;
|
||||||
use CL\Chill\PersonBundle\Entity\Person;
|
use Chill\PersonBundle\Entity\Person;
|
||||||
|
|
||||||
class PersonToIdTransformer implements DataTransformerInterface
|
class PersonToIdTransformer implements DataTransformerInterface
|
||||||
{
|
{
|
||||||
@ -53,7 +53,7 @@ class PersonToIdTransformer implements DataTransformerInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
$issue = $this->om
|
$issue = $this->om
|
||||||
->getRepository('CLChillPersonBundle:Person')
|
->getRepository('ChillPersonBundle:Person')
|
||||||
->findOneBy(array('id' => $id))
|
->findOneBy(array('id' => $id))
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace CL\Chill\PersonBundle\Form;
|
namespace Chill\PersonBundle\Form;
|
||||||
|
|
||||||
use Symfony\Component\Form\AbstractType;
|
use Symfony\Component\Form\AbstractType;
|
||||||
use Symfony\Component\Form\FormBuilderInterface;
|
use Symfony\Component\Form\FormBuilderInterface;
|
||||||
@ -44,7 +44,7 @@ class PersonHistoryFileType extends AbstractType
|
|||||||
public function setDefaultOptions(OptionsResolverInterface $resolver)
|
public function setDefaultOptions(OptionsResolverInterface $resolver)
|
||||||
{
|
{
|
||||||
$resolver->setDefaults(array(
|
$resolver->setDefaults(array(
|
||||||
'data_class' => 'CL\Chill\PersonBundle\Entity\PersonHistoryFile'
|
'data_class' => 'Chill\PersonBundle\Entity\PersonHistoryFile'
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace CL\Chill\PersonBundle\Form;
|
namespace Chill\PersonBundle\Form;
|
||||||
|
|
||||||
use Symfony\Component\Form\AbstractType;
|
use Symfony\Component\Form\AbstractType;
|
||||||
use Symfony\Component\Form\FormBuilderInterface;
|
use Symfony\Component\Form\FormBuilderInterface;
|
||||||
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
|
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
|
||||||
use CL\Chill\PersonBundle\Form\Type\CivilType;
|
use Chill\PersonBundle\Form\Type\CivilType;
|
||||||
use CL\Chill\PersonBundle\Form\Type\GenderType;
|
use Chill\PersonBundle\Form\Type\GenderType;
|
||||||
use CL\BelgianNationalNumberBundle\Form\BelgianNationalNumberType;
|
use CL\BelgianNationalNumberBundle\Form\BelgianNationalNumberType;
|
||||||
|
|
||||||
class PersonType extends AbstractType
|
class PersonType extends AbstractType
|
||||||
@ -51,7 +51,7 @@ class PersonType extends AbstractType
|
|||||||
public function setDefaultOptions(OptionsResolverInterface $resolver)
|
public function setDefaultOptions(OptionsResolverInterface $resolver)
|
||||||
{
|
{
|
||||||
$resolver->setDefaults(array(
|
$resolver->setDefaults(array(
|
||||||
'data_class' => 'CL\Chill\PersonBundle\Entity\Person'
|
'data_class' => 'Chill\PersonBundle\Entity\Person'
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace CL\Chill\PersonBundle\Form\Type;
|
namespace Chill\PersonBundle\Form\Type;
|
||||||
|
|
||||||
use Symfony\Component\Form\AbstractType;
|
use Symfony\Component\Form\AbstractType;
|
||||||
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
|
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
|
||||||
use CL\Chill\PersonBundle\Entity\Person;
|
use Chill\PersonBundle\Entity\Person;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A type to select the civil union state
|
* A type to select the civil union state
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace CL\Chill\PersonBundle\Form\Type;
|
namespace Chill\PersonBundle\Form\Type;
|
||||||
|
|
||||||
use Symfony\Component\Form\AbstractType;
|
use Symfony\Component\Form\AbstractType;
|
||||||
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
|
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
|
||||||
use CL\Chill\PersonBundle\Entity\Person;
|
use Chill\PersonBundle\Entity\Person;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A type to select the civil union state
|
* A type to select the civil union state
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
CL\Chill\PersonBundle\Entity\Person:
|
Chill\PersonBundle\Entity\Person:
|
||||||
type: entity
|
type: entity
|
||||||
table: null
|
table: null
|
||||||
repositoryClass: CL\Chill\PersonBundle\Entity\PersonRepository
|
repositoryClass: Chill\PersonBundle\Entity\PersonRepository
|
||||||
fields:
|
fields:
|
||||||
id:
|
id:
|
||||||
type: integer
|
type: integer
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
CL\Chill\PersonBundle\Entity\PersonHistoryFile:
|
Chill\PersonBundle\Entity\PersonHistoryFile:
|
||||||
type: entity
|
type: entity
|
||||||
table: person_history_file
|
table: person_history_file
|
||||||
id:
|
id:
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
chill_person_view:
|
chill_person_view:
|
||||||
pattern: /view/{id}
|
pattern: /view/{id}
|
||||||
defaults: { _controller: CLChillPersonBundle:Person:view }
|
defaults: { _controller: ChillPersonBundle:Person:view }
|
||||||
options:
|
options:
|
||||||
menu: person
|
menu: person
|
||||||
order: 50
|
order: 50
|
||||||
@ -10,32 +10,32 @@ chill_person_view:
|
|||||||
|
|
||||||
chill_person_general_edit:
|
chill_person_general_edit:
|
||||||
pattern: /view/{id}/edit
|
pattern: /view/{id}/edit
|
||||||
defaults: {_controller: CLChillPersonBundle:Person:edit }
|
defaults: {_controller: ChillPersonBundle:Person:edit }
|
||||||
|
|
||||||
chill_person_general_update:
|
chill_person_general_update:
|
||||||
pattern: /view/{id}/update
|
pattern: /view/{id}/update
|
||||||
defaults: {_controller: CLChillPersonBundle:Person:update }
|
defaults: {_controller: ChillPersonBundle:Person:update }
|
||||||
|
|
||||||
chill_person_new:
|
chill_person_new:
|
||||||
pattern: /new
|
pattern: /new
|
||||||
defaults: {_controller: CLChillPersonBundle:Person:new }
|
defaults: {_controller: ChillPersonBundle:Person:new }
|
||||||
|
|
||||||
chill_person_review:
|
chill_person_review:
|
||||||
pattern: /review
|
pattern: /review
|
||||||
defaults: {_controller: CLChillPersonBundle:Person:review }
|
defaults: {_controller: ChillPersonBundle:Person:review }
|
||||||
|
|
||||||
chill_person_create:
|
chill_person_create:
|
||||||
pattern: /create
|
pattern: /create
|
||||||
defaults: {_controller: CLChillPersonBundle:Person:create }
|
defaults: {_controller: ChillPersonBundle:Person:create }
|
||||||
|
|
||||||
|
|
||||||
chill_person_search:
|
chill_person_search:
|
||||||
pattern: /search
|
pattern: /search
|
||||||
defaults: { _controller: CLChillPersonBundle:Person:search }
|
defaults: { _controller: ChillPersonBundle:Person:search }
|
||||||
|
|
||||||
chill_person_history_list:
|
chill_person_history_list:
|
||||||
pattern: /{id}/history
|
pattern: /{id}/history
|
||||||
defaults: { _controller: CLChillPersonBundle:History:list }
|
defaults: { _controller: ChillPersonBundle:History:list }
|
||||||
options:
|
options:
|
||||||
menu: person
|
menu: person
|
||||||
order: 100
|
order: 100
|
||||||
@ -43,24 +43,24 @@ chill_person_history_list:
|
|||||||
|
|
||||||
chill_person_history_create:
|
chill_person_history_create:
|
||||||
pattern: /{personId}/history/create
|
pattern: /{personId}/history/create
|
||||||
defaults: { _controller: CLChillPersonBundle:History:create }
|
defaults: { _controller: ChillPersonBundle:History:create }
|
||||||
|
|
||||||
|
|
||||||
chill_person_history_update:
|
chill_person_history_update:
|
||||||
pattern: /{id}/history/{historyId}/update
|
pattern: /{id}/history/{historyId}/update
|
||||||
defaults: { _controller: CLChillPersonBundle:History:update }
|
defaults: { _controller: ChillPersonBundle:History:update }
|
||||||
|
|
||||||
chill_person_history_close:
|
chill_person_history_close:
|
||||||
pattern: /{id}/history/close
|
pattern: /{id}/history/close
|
||||||
defaults: { _controller: CLChillPersonBundle:History:close }
|
defaults: { _controller: ChillPersonBundle:History:close }
|
||||||
|
|
||||||
chill_person_history_open:
|
chill_person_history_open:
|
||||||
pattern: /{id}/history/open
|
pattern: /{id}/history/open
|
||||||
defaults: { _controller: CLChillPersonBundle:History:open }
|
defaults: { _controller: ChillPersonBundle:History:open }
|
||||||
|
|
||||||
chill_person_admin:
|
chill_person_admin:
|
||||||
pattern: /admin
|
pattern: /admin
|
||||||
defaults: { _controller: CLChillPersonBundle:Admin:index }
|
defaults: { _controller: ChillPersonBundle:Admin:index }
|
||||||
options:
|
options:
|
||||||
menu: admin
|
menu: admin
|
||||||
order: 100
|
order: 100
|
||||||
@ -70,7 +70,7 @@ chill_person_admin:
|
|||||||
#sample admin_person menu:
|
#sample admin_person menu:
|
||||||
chill_person_admin_test_one:
|
chill_person_admin_test_one:
|
||||||
pattern: /admin/test_one
|
pattern: /admin/test_one
|
||||||
defaults: { _controller: CLChillPersonBundle:Admin:test }
|
defaults: { _controller: ChillPersonBundle:Admin:test }
|
||||||
options:
|
options:
|
||||||
menu: admin_person
|
menu: admin_person
|
||||||
order: 100
|
order: 100
|
||||||
@ -80,7 +80,7 @@ chill_person_admin_test_one:
|
|||||||
#sample
|
#sample
|
||||||
chill_appointment_list:
|
chill_appointment_list:
|
||||||
pattern: /view/{id}/appointment/list
|
pattern: /view/{id}/appointment/list
|
||||||
defaults: {_controller: CLChillPersonBundle:Person:view}
|
defaults: {_controller: ChillPersonBundle:Person:view}
|
||||||
options:
|
options:
|
||||||
menu: person
|
menu: person
|
||||||
order: 200
|
order: 200
|
||||||
@ -88,7 +88,7 @@ chill_appointment_list:
|
|||||||
|
|
||||||
chill_prof_status_view:
|
chill_prof_status_view:
|
||||||
pattern: /view/{id}/prof/list
|
pattern: /view/{id}/prof/list
|
||||||
defaults: {_controller: CLChillPersonBundle:Person:view}
|
defaults: {_controller: ChillPersonBundle:Person:view}
|
||||||
options:
|
options:
|
||||||
menu: person
|
menu: person
|
||||||
order: 300
|
order: 300
|
||||||
@ -96,7 +96,7 @@ chill_prof_status_view:
|
|||||||
|
|
||||||
chill_admin_view:
|
chill_admin_view:
|
||||||
pattern: /view/{id}/administrative
|
pattern: /view/{id}/administrative
|
||||||
defaults: {_controller: CLChillPersonBundle:Person:view}
|
defaults: {_controller: ChillPersonBundle:Person:view}
|
||||||
options:
|
options:
|
||||||
menu: person
|
menu: person
|
||||||
order: 400
|
order: 400
|
||||||
@ -104,7 +104,7 @@ chill_admin_view:
|
|||||||
|
|
||||||
chill_language:
|
chill_language:
|
||||||
pattern: /view/{id}/language/list
|
pattern: /view/{id}/language/list
|
||||||
defaults: {_controller: CLChillPersonBundle:Person:view}
|
defaults: {_controller: ChillPersonBundle:Person:view}
|
||||||
options:
|
options:
|
||||||
menu: person
|
menu: person
|
||||||
order: 500
|
order: 500
|
||||||
@ -112,7 +112,7 @@ chill_language:
|
|||||||
|
|
||||||
chill_studies:
|
chill_studies:
|
||||||
pattern: /view/{id}/studies
|
pattern: /view/{id}/studies
|
||||||
defaults: {_controller: CLChillPersonBundle:Person:view}
|
defaults: {_controller: ChillPersonBundle:Person:view}
|
||||||
options:
|
options:
|
||||||
menu: person
|
menu: person
|
||||||
order: 600
|
order: 600
|
||||||
@ -120,7 +120,7 @@ chill_studies:
|
|||||||
|
|
||||||
chill_notes:
|
chill_notes:
|
||||||
pattern: /view/{id}/notes
|
pattern: /view/{id}/notes
|
||||||
defaults: {_controller: CLChillPersonBundle:Person:view}
|
defaults: {_controller: ChillPersonBundle:Person:view}
|
||||||
options:
|
options:
|
||||||
menu: person
|
menu: person
|
||||||
order: 700
|
order: 700
|
||||||
@ -128,7 +128,7 @@ chill_notes:
|
|||||||
|
|
||||||
chill_docs:
|
chill_docs:
|
||||||
pattern: /view/{id}/docs
|
pattern: /view/{id}/docs
|
||||||
defaults: {_controller: CLChillPersonBundle:Person:view}
|
defaults: {_controller: ChillPersonBundle:Person:view}
|
||||||
options:
|
options:
|
||||||
menu: person
|
menu: person
|
||||||
order: 800
|
order: 800
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
parameters:
|
parameters:
|
||||||
# cl_chill_person.example.class: CL\Chill\PersonBundle\Example
|
# cl_chill_person.example.class: Chill\PersonBundle\Example
|
||||||
|
|
||||||
services:
|
services:
|
||||||
# cl_chill_person.example:
|
# cl_chill_person.example:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
CL\Chill\PersonBundle\Entity\Person:
|
Chill\PersonBundle\Entity\Person:
|
||||||
properties:
|
properties:
|
||||||
belgian_national_number:
|
belgian_national_number:
|
||||||
- NotBlank:
|
- NotBlank:
|
||||||
@ -46,7 +46,7 @@ CL\Chill\PersonBundle\Entity\Person:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
CL\Chill\PersonBundle\Entity\PersonHistoryFile:
|
Chill\PersonBundle\Entity\PersonHistoryFile:
|
||||||
properties:
|
properties:
|
||||||
date_opening:
|
date_opening:
|
||||||
- Date:
|
- Date:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{% extends "CLChillPersonBundle::layout.html.twig" %}
|
{% extends "ChillPersonBundle::layout.html.twig" %}
|
||||||
|
|
||||||
{% set activeRouteKey = null %}
|
{% set activeRouteKey = null %}
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{% extends "CLChillPersonBundle::layout.html.twig" %}
|
{% extends "ChillPersonBundle::layout.html.twig" %}
|
||||||
|
|
||||||
{% set activeRouteKey = 'chill_person_history_list' %}
|
{% set activeRouteKey = 'chill_person_history_list' %}
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{% extends "CLChillPersonBundle::layout.html.twig" %}
|
{% extends "ChillPersonBundle::layout.html.twig" %}
|
||||||
|
|
||||||
{% set activeRouteKey = null %}
|
{% set activeRouteKey = null %}
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{% extends "CLChillPersonBundle::layout.html.twig" %}
|
{% extends "ChillPersonBundle::layout.html.twig" %}
|
||||||
|
|
||||||
{% set activeRouteKey = null %}
|
{% set activeRouteKey = null %}
|
||||||
|
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
{% extends "CLChillPersonBundle::layout.html.twig" %}
|
{% extends "ChillPersonBundle::layout.html.twig" %}
|
||||||
|
|
||||||
{% set activeRouteKey = '' %}
|
{% set activeRouteKey = '' %}
|
||||||
|
|
||||||
{% block title %}CLChillPersonBundle:Person:see{% endblock %}
|
{% block title %}ChillPersonBundle:Person:see{% endblock %}
|
||||||
|
|
||||||
{% block personcontent %}
|
{% block personcontent %}
|
||||||
|
|
||||||
{% form_theme form 'CLChillMainBundle:Form:fields.html.twig' %}
|
{% form_theme form 'CLChillMainBundle:Form:fields.html.twig' %}
|
||||||
|
|
||||||
{{ form_start(form) }}
|
{{ form_start(form) }}
|
||||||
{% set include_temp = 'CLChillPersonBundle:Form:form_control.html.twig' %}
|
{% set include_temp = 'ChillPersonBundle:Form:form_control.html.twig' %}
|
||||||
{% set include_args = {'return_key': 'chill_person_view',
|
{% set include_args = {'return_key': 'chill_person_view',
|
||||||
'return_args' : { 'id' : person.id} } %}
|
'return_args' : { 'id' : person.id} } %}
|
||||||
{{ include(include_temp, include_args) }}
|
{{ include(include_temp, include_args) }}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{% extends "CLChillPersonBundle::layout.html.twig" %}
|
{% extends "ChillPersonBundle::layout.html.twig" %}
|
||||||
|
|
||||||
{% set activeRouteKey = 'chill_person_view' %}
|
{% set activeRouteKey = 'chill_person_view' %}
|
||||||
|
|
||||||
@ -10,9 +10,9 @@ This view should receive those arguments:
|
|||||||
|
|
||||||
#}
|
#}
|
||||||
|
|
||||||
{% block title %}CLChillPersonBundle:Person:see{% endblock %}
|
{% block title %}ChillPersonBundle:Person:see{% endblock %}
|
||||||
|
|
||||||
{% set edit_tmp_name = 'CLChillPersonBundle:Form:go_to_form.html.twig' %}
|
{% set edit_tmp_name = 'ChillPersonBundle:Form:go_to_form.html.twig' %}
|
||||||
{% set edit_tmp_args = { 'form_path_args' : { 'id': person.id },
|
{% set edit_tmp_args = { 'form_path_args' : { 'id': person.id },
|
||||||
'form_path_key' : 'chill_person_general_edit' } %}
|
'form_path_key' : 'chill_person_general_edit' } %}
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
{# Note: activeRouteKey should be defined in Controller or child layout #}
|
{# Note: activeRouteKey should be defined in Controller or child layout #}
|
||||||
{{ render(controller("CLChillMainBundle:Menu:writeMenu", {
|
{{ render(controller("CLChillMainBundle:Menu:writeMenu", {
|
||||||
'menu' : 'person',
|
'menu' : 'person',
|
||||||
'layout': 'CLChillPersonBundle::menu.html.twig',
|
'layout': 'ChillPersonBundle::menu.html.twig',
|
||||||
'args' : {'id': person.id },
|
'args' : {'id': person.id },
|
||||||
'activeRouteKey': activeRouteKey
|
'activeRouteKey': activeRouteKey
|
||||||
})) }}
|
})) }}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace CL\Chill\PersonBundle\Tests\Controller;
|
namespace Chill\PersonBundle\Tests\Controller;
|
||||||
|
|
||||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace CL\Chill\PersonBundle\Tests\Controller;
|
namespace Chill\PersonBundle\Tests\Controller;
|
||||||
|
|
||||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||||
use CL\Chill\PersonBundle\Entity\PersonHistoryFile;
|
use Chill\PersonBundle\Entity\PersonHistoryFile;
|
||||||
use CL\Chill\PersonBundle\Entity\Person;
|
use Chill\PersonBundle\Entity\Person;
|
||||||
|
|
||||||
class HistoryControllerTest extends WebTestCase
|
class HistoryControllerTest extends WebTestCase
|
||||||
{
|
{
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace CL\Chill\PersonBundle\Tests\Controller;
|
namespace Chill\PersonBundle\Tests\Controller;
|
||||||
|
|
||||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user