diff --git a/src/.htaccess b/src/.htaccess
deleted file mode 100644
index fb1de45bd..000000000
--- a/src/.htaccess
+++ /dev/null
@@ -1,7 +0,0 @@
-
- Require all denied
-
-
- Order deny,allow
- Deny from all
-
diff --git a/src/Chill/CustomFieldsBundle/ChillCustomFieldsBundle.php b/src/Chill/CustomFieldsBundle/ChillCustomFieldsBundle.php
deleted file mode 100644
index 7150e5026..000000000
--- a/src/Chill/CustomFieldsBundle/ChillCustomFieldsBundle.php
+++ /dev/null
@@ -1,15 +0,0 @@
-addCompilerPass(new CustomFieldCompilerPass());
- }
-}
diff --git a/src/Chill/CustomFieldsBundle/Controller/AdressController.php b/src/Chill/CustomFieldsBundle/Controller/AdressController.php
deleted file mode 100644
index 1a64204cc..000000000
--- a/src/Chill/CustomFieldsBundle/Controller/AdressController.php
+++ /dev/null
@@ -1,224 +0,0 @@
-getDoctrine()->getManager();
-
- $entities = $em->getRepository('ChillCustomFieldsBundle:Adress')->findAll();
-
- return $this->render('ChillCustomFieldsBundle:Adress:index.html.twig', array(
- 'entities' => $entities,
- ));
- }
- /**
- * Creates a new Adress entity.
- *
- */
- public function createAction(Request $request)
- {
- $entity = new Adress();
- $form = $this->createCreateForm($entity);
- $form->handleRequest($request);
-
- if ($form->isValid()) {
- $em = $this->getDoctrine()->getManager();
- $em->persist($entity);
- $em->flush();
-
- return $this->redirect($this->generateUrl('adress_show', array('id' => $entity->getId())));
- }
-
- return $this->render('ChillCustomFieldsBundle:Adress:new.html.twig', array(
- 'entity' => $entity,
- 'form' => $form->createView(),
- ));
- }
-
- /**
- * Creates a form to create a Adress entity.
- *
- * @param Adress $entity The entity
- *
- * @return \Symfony\Component\Form\Form The form
- */
- private function createCreateForm(Adress $entity)
- {
- $form = $this->createForm(new AdressType(), $entity, array(
- 'action' => $this->generateUrl('adress_create'),
- 'method' => 'POST',
- ));
-
- $form->add('submit', 'submit', array('label' => 'Create'));
-
- return $form;
- }
-
- /**
- * Displays a form to create a new Adress entity.
- *
- */
- public function newAction()
- {
- $entity = new Adress();
- $form = $this->createCreateForm($entity);
-
- return $this->render('ChillCustomFieldsBundle:Adress:new.html.twig', array(
- 'entity' => $entity,
- 'form' => $form->createView(),
- ));
- }
-
- /**
- * Finds and displays a Adress entity.
- *
- */
- public function showAction($id)
- {
- $em = $this->getDoctrine()->getManager();
-
- $entity = $em->getRepository('ChillCustomFieldsBundle:Adress')->find($id);
-
- if (!$entity) {
- throw $this->createNotFoundException('Unable to find Adress entity.');
- }
-
- $deleteForm = $this->createDeleteForm($id);
-
- return $this->render('ChillCustomFieldsBundle:Adress:show.html.twig', array(
- 'entity' => $entity,
- 'delete_form' => $deleteForm->createView(),
- ));
- }
-
- /**
- * Displays a form to edit an existing Adress entity.
- *
- */
- public function editAction($id)
- {
- $em = $this->getDoctrine()->getManager();
-
- $entity = $em->getRepository('ChillCustomFieldsBundle:Adress')->find($id);
-
- if (!$entity) {
- throw $this->createNotFoundException('Unable to find Adress entity.');
- }
-
- $editForm = $this->createEditForm($entity);
- $deleteForm = $this->createDeleteForm($id);
-
- return $this->render('ChillCustomFieldsBundle:Adress:edit.html.twig', array(
- 'entity' => $entity,
- 'edit_form' => $editForm->createView(),
- 'delete_form' => $deleteForm->createView(),
- ));
- }
-
- /**
- * Creates a form to edit a Adress entity.
- *
- * @param Adress $entity The entity
- *
- * @return \Symfony\Component\Form\Form The form
- */
- private function createEditForm(Adress $entity)
- {
- $form = $this->createForm(new AdressType(), $entity, array(
- 'action' => $this->generateUrl('adress_update', array('id' => $entity->getId())),
- 'method' => 'PUT',
- ));
-
- $form->add('submit', 'submit', array('label' => 'Update'));
-
- return $form;
- }
- /**
- * Edits an existing Adress entity.
- *
- */
- public function updateAction(Request $request, $id)
- {
- $em = $this->getDoctrine()->getManager();
-
- $entity = $em->getRepository('ChillCustomFieldsBundle:Adress')->find($id);
-
- if (!$entity) {
- throw $this->createNotFoundException('Unable to find Adress entity.');
- }
-
- $deleteForm = $this->createDeleteForm($id);
- $editForm = $this->createEditForm($entity);
- $editForm->handleRequest($request);
-
- if ($editForm->isValid()) {
- $em->flush();
-
- return $this->redirect($this->generateUrl('adress_edit', array('id' => $id)));
- }
-
- return $this->render('ChillCustomFieldsBundle:Adress:edit.html.twig', array(
- 'entity' => $entity,
- 'edit_form' => $editForm->createView(),
- 'delete_form' => $deleteForm->createView(),
- ));
- }
- /**
- * Deletes a Adress entity.
- *
- */
- public function deleteAction(Request $request, $id)
- {
- $form = $this->createDeleteForm($id);
- $form->handleRequest($request);
-
- if ($form->isValid()) {
- $em = $this->getDoctrine()->getManager();
- $entity = $em->getRepository('ChillCustomFieldsBundle:Adress')->find($id);
-
- if (!$entity) {
- throw $this->createNotFoundException('Unable to find Adress entity.');
- }
-
- $em->remove($entity);
- $em->flush();
- }
-
- return $this->redirect($this->generateUrl('adress'));
- }
-
- /**
- * Creates a form to delete a Adress entity by id.
- *
- * @param mixed $id The entity id
- *
- * @return \Symfony\Component\Form\Form The form
- */
- private function createDeleteForm($id)
- {
- return $this->createFormBuilder()
- ->setAction($this->generateUrl('adress_delete', array('id' => $id)))
- ->setMethod('DELETE')
- ->add('submit', 'submit', array('label' => 'Delete'))
- ->getForm()
- ;
- }
-}
diff --git a/src/Chill/CustomFieldsBundle/Controller/BlopEntity2Controller.php b/src/Chill/CustomFieldsBundle/Controller/BlopEntity2Controller.php
deleted file mode 100644
index 9b14e753c..000000000
--- a/src/Chill/CustomFieldsBundle/Controller/BlopEntity2Controller.php
+++ /dev/null
@@ -1,226 +0,0 @@
-getDoctrine()->getManager();
-
- $entities = $em->getRepository('ChillCustomFieldsBundle:BlopEntity2')->findAll();
-
- return $this->render('ChillCustomFieldsBundle:BlopEntity2:index.html.twig', array(
- 'entities' => $entities,
- ));
- }
- /**
- * Creates a new BlopEntity2 entity.
- *
- */
- public function createAction(Request $request)
- {
- $entity = new BlopEntity2();
- $form = $this->createCreateForm($entity);
- $form->handleRequest($request);
-
- if ($form->isValid()) {
- $em = $this->getDoctrine()->getManager();
- $em->persist($entity);
- $em->flush();
-
- return $this->redirect($this->generateUrl('blopentity2_show', array('id' => $entity->getId())));
- }
-
- return $this->render('ChillCustomFieldsBundle:BlopEntity2:new.html.twig', array(
- 'entity' => $entity,
- 'form' => $form->createView(),
- ));
- }
-
- /**
- * Creates a form to create a BlopEntity2 entity.
- *
- * @param BlopEntity2 $entity The entity
- *
- * @return \Symfony\Component\Form\Form The form
- */
- private function createCreateForm(BlopEntity2 $entity)
- {
- $form = $this->createForm(new BlopEntity2Type(), $entity, array(
- 'action' => $this->generateUrl('blopentity2_create'),
- 'method' => 'POST',
- 'em' => $this->getDoctrine()->getManager(),
- ));
-
- $form->add('submit', 'submit', array('label' => 'Create'));
-
- return $form;
- }
-
- /**
- * Displays a form to create a new BlopEntity2 entity.
- *
- */
- public function newAction()
- {
- $entity = new BlopEntity2();
- $form = $this->createCreateForm($entity);
-
- return $this->render('ChillCustomFieldsBundle:BlopEntity2:new.html.twig', array(
- 'entity' => $entity,
- 'form' => $form->createView(),
- ));
- }
-
- /**
- * Finds and displays a BlopEntity2 entity.
- *
- */
- public function showAction($id)
- {
- $em = $this->getDoctrine()->getManager();
-
- $entity = $em->getRepository('ChillCustomFieldsBundle:BlopEntity2')->find($id);
-
- if (!$entity) {
- throw $this->createNotFoundException('Unable to find BlopEntity2 entity.');
- }
-
- $deleteForm = $this->createDeleteForm($id);
-
- return $this->render('ChillCustomFieldsBundle:BlopEntity2:show.html.twig', array(
- 'entity' => $entity,
- 'delete_form' => $deleteForm->createView(),
- ));
- }
-
- /**
- * Displays a form to edit an existing BlopEntity2 entity.
- *
- */
- public function editAction($id)
- {
- $em = $this->getDoctrine()->getManager();
-
- $entity = $em->getRepository('ChillCustomFieldsBundle:BlopEntity2')->find($id);
-
- if (!$entity) {
- throw $this->createNotFoundException('Unable to find BlopEntity2 entity.');
- }
-
- $editForm = $this->createEditForm($entity);
- $deleteForm = $this->createDeleteForm($id);
-
- return $this->render('ChillCustomFieldsBundle:BlopEntity2:edit.html.twig', array(
- 'entity' => $entity,
- 'edit_form' => $editForm->createView(),
- 'delete_form' => $deleteForm->createView(),
- ));
- }
-
- /**
- * Creates a form to edit a BlopEntity2 entity.
- *
- * @param BlopEntity2 $entity The entity
- *
- * @return \Symfony\Component\Form\Form The form
- */
- private function createEditForm(BlopEntity2 $entity)
- {
- $form = $this->createForm(new BlopEntity2Type(), $entity, array(
- 'action' => $this->generateUrl('blopentity2_update', array('id' => $entity->getId())),
- 'method' => 'PUT',
- 'em' => $this->getDoctrine()->getManager(),
- ));
-
- $form->add('submit', 'submit', array('label' => 'Update'));
-
- return $form;
- }
- /**
- * Edits an existing BlopEntity2 entity.
- *
- */
- public function updateAction(Request $request, $id)
- {
- $em = $this->getDoctrine()->getManager();
-
- $entity = $em->getRepository('ChillCustomFieldsBundle:BlopEntity2')->find($id);
-
- if (!$entity) {
- throw $this->createNotFoundException('Unable to find BlopEntity2 entity.');
- }
-
- $deleteForm = $this->createDeleteForm($id);
- $editForm = $this->createEditForm($entity);
- $editForm->handleRequest($request);
-
- if ($editForm->isValid()) {
- $em->flush();
-
- return $this->redirect($this->generateUrl('blopentity2_edit', array('id' => $id)));
- }
-
- return $this->render('ChillCustomFieldsBundle:BlopEntity2:edit.html.twig', array(
- 'entity' => $entity,
- 'edit_form' => $editForm->createView(),
- 'delete_form' => $deleteForm->createView(),
- ));
- }
- /**
- * Deletes a BlopEntity2 entity.
- *
- */
- public function deleteAction(Request $request, $id)
- {
- $form = $this->createDeleteForm($id);
- $form->handleRequest($request);
-
- if ($form->isValid()) {
- $em = $this->getDoctrine()->getManager();
- $entity = $em->getRepository('ChillCustomFieldsBundle:BlopEntity2')->find($id);
-
- if (!$entity) {
- throw $this->createNotFoundException('Unable to find BlopEntity2 entity.');
- }
-
- $em->remove($entity);
- $em->flush();
- }
-
- return $this->redirect($this->generateUrl('blopentity2'));
- }
-
- /**
- * Creates a form to delete a BlopEntity2 entity by id.
- *
- * @param mixed $id The entity id
- *
- * @return \Symfony\Component\Form\Form The form
- */
- private function createDeleteForm($id)
- {
- return $this->createFormBuilder()
- ->setAction($this->generateUrl('blopentity2_delete', array('id' => $id)))
- ->setMethod('DELETE')
- ->add('submit', 'submit', array('label' => 'Delete'))
- ->getForm()
- ;
- }
-}
diff --git a/src/Chill/CustomFieldsBundle/Controller/BlopEntityController.php b/src/Chill/CustomFieldsBundle/Controller/BlopEntityController.php
deleted file mode 100644
index 3f833f05d..000000000
--- a/src/Chill/CustomFieldsBundle/Controller/BlopEntityController.php
+++ /dev/null
@@ -1,291 +0,0 @@
-getDoctrine()->getManager();
-
- $customFields = $em->getRepository('ChillCustomFieldsBundle:CustomField')
- ->findAll();
-
- $customFieldsLablels = array_map(
- function($e) { return $e->getLabel(); },
- $customFields);
-
- $customFieldsByLabel = array_combine($customFieldsLablels, $customFields);
-
- if (array_key_exists($key,$customFieldsByLabel)) {
- $customFieldConfig = $customFieldsByLabel[$key];
- if($customFieldConfig->getType() === 'OneToMany(Adress)') {
- $manyToOneEntity = new AdressType();
- $form = $this->createCreateForm($manyToOneEntity);
- $form->handleRequest($request);
-
- if ($form->isValid()) {
- $em = $this->getDoctrine()->getManager();
- $em->persist($manyToOneEntity);
- $em->flush();
-
- $blopEntity = $this->om
- ->getRepository('ChillCustomFieldsBundle:CustomField')
- ->findOneById($id);
-
- $blopEntityCustomFieldArray = json_decode($blopEntity->getCustomField());
- $blopEntityCustomFieldArray[$key][] = $manyToOneEntity->getId();
- }
- } else {
- // PAS MANY TO ONE
- throw new Exception("Error Processing Request", 1);
- }
- } else {
- // PAS RENSEIGNE COMME CF
- throw new Exception("Error Processing Request", 1);
- }
- }
-
- /**
- * Lists all BlopEntity entities.
- *
- */
- public function indexAction()
- {
- $em = $this->getDoctrine()->getManager();
-
- $entities = $em->getRepository('ChillCustomFieldsBundle:BlopEntity')->findAll();
-
- return $this->render('ChillCustomFieldsBundle:BlopEntity:index.html.twig', array(
- 'entities' => $entities,
- ));
- }
-
- public function cfSetAction($id,$key,$value)
- {
- $em = $this->getDoctrine()->getManager();
- $entity = $em->getRepository('ChillCustomFieldsBundle:BlopEntity')->find($id);
- echo $entity->cfSet($key,$value);
- var_dump($entity->getCustomField());
- $em->persist($entity);
- $em->flush();
- return null;//$entity->cfSet($key,$value);
- }
-
- public function cfGetAction($id,$key)
- {
- $em = $this->getDoctrine()->getManager();
- $entity = $em->getRepository('ChillCustomFieldsBundle:BlopEntity')->find($id);
- echo $entity->cfGet($key);
- return null;//return $entity->cfGet($key);
- }
-
- /**
- * Creates a new BlopEntity entity.
- *
- */
- public function createAction(Request $request)
- {
- $entity = new BlopEntity();
- $form = $this->createCreateForm($entity);
- $form->handleRequest($request);
-
- if ($form->isValid()) {
- $em = $this->getDoctrine()->getManager();
- $em->persist($entity);
- $em->flush();
-
- return $this->redirect($this->generateUrl('blopentity_show', array('id' => $entity->getId())));
- }
-
- return $this->render('ChillCustomFieldsBundle:BlopEntity:new.html.twig', array(
- 'entity' => $entity,
- 'form' => $form->createView(),
- ));
- }
-
- /**
- * Creates a form to create a BlopEntity entity.
- *
- * @param BlopEntity $entity The entity
- *
- * @return \Symfony\Component\Form\Form The form
- */
- private function createCreateForm(BlopEntity $entity)
- {
- $form = $this->createForm(new BlopEntityType(), $entity, array(
- 'action' => $this->generateUrl('blopentity_create'),
- 'method' => 'POST',
- 'em' => $this->getDoctrine()->getManager(),
- ));
-
-
-
- $form->add('submit', 'submit', array('label' => 'Create'));
-
- return $form;
- }
-
- /**
- * Displays a form to create a new BlopEntity entity.
- *
- */
- public function newAction()
- {
- $entity = new BlopEntity();
- $form = $this->createCreateForm($entity);
-
- return $this->render('ChillCustomFieldsBundle:BlopEntity:new.html.twig', array(
- 'entity' => $entity,
- 'form' => $form->createView(),
- ));
- }
-
- /**
- * Finds and displays a BlopEntity entity.
- *
- */
- public function showAction($id)
- {
- $em = $this->getDoctrine()->getManager();
-
- $entity = $em->getRepository('ChillCustomFieldsBundle:BlopEntity')->find($id);
-
- if (!$entity) {
- throw $this->createNotFoundException('Unable to find BlopEntity entity.');
- }
-
- $deleteForm = $this->createDeleteForm($id);
-
- return $this->render('ChillCustomFieldsBundle:BlopEntity:show.html.twig', array(
- 'entity' => $entity,
- 'delete_form' => $deleteForm->createView(),
- ));
- }
-
- /**
- * Displays a form to edit an existing BlopEntity entity.
- *
- */
- public function editAction($id)
- {
- $em = $this->getDoctrine()->getManager();
-
- $entity = $em->getRepository('ChillCustomFieldsBundle:BlopEntity')->find($id);
-
- if (!$entity) {
- throw $this->createNotFoundException('Unable to find BlopEntity entity.');
- }
-
- $editForm = $this->createEditForm($entity);
- $deleteForm = $this->createDeleteForm($id);
-
- return $this->render('ChillCustomFieldsBundle:BlopEntity:edit.html.twig', array(
- 'entity' => $entity,
- 'edit_form' => $editForm->createView(),
- 'delete_form' => $deleteForm->createView(),
- ));
- }
-
- /**
- * Creates a form to edit a BlopEntity entity.
- *
- * @param BlopEntity $entity The entity
- *
- * @return \Symfony\Component\Form\Form The form
- */
- private function createEditForm(BlopEntity $entity)
- {
- $form = $this->createForm(new BlopEntityType(), $entity, array(
- 'action' => $this->generateUrl('blopentity_update', array('id' => $entity->getId())),
- 'method' => 'PUT',
- 'em' => $this->getDoctrine()->getManager(),
- ));
-
- $form->add('submit', 'submit', array('label' => 'Update'));
-
- return $form;
- }
- /**
- * Edits an existing BlopEntity entity.
- *
- */
- public function updateAction(Request $request, $id)
- {
- $em = $this->getDoctrine()->getManager();
-
- $entity = $em->getRepository('ChillCustomFieldsBundle:BlopEntity')->find($id);
-
- if (!$entity) {
- throw $this->createNotFoundException('Unable to find BlopEntity entity.');
- }
-
- $deleteForm = $this->createDeleteForm($id);
- $editForm = $this->createEditForm($entity);
- $editForm->handleRequest($request);
-
- if ($editForm->isValid()) {
- $em->flush();
-
- return $this->redirect($this->generateUrl('blopentity_edit', array('id' => $id)));
- }
-
- return $this->render('ChillCustomFieldsBundle:BlopEntity:edit.html.twig', array(
- 'entity' => $entity,
- 'edit_form' => $editForm->createView(),
- 'delete_form' => $deleteForm->createView(),
- ));
- }
- /**
- * Deletes a BlopEntity entity.
- *
- */
- public function deleteAction(Request $request, $id)
- {
- $form = $this->createDeleteForm($id);
- $form->handleRequest($request);
-
- if ($form->isValid()) {
- $em = $this->getDoctrine()->getManager();
- $entity = $em->getRepository('ChillCustomFieldsBundle:BlopEntity')->find($id);
-
- if (!$entity) {
- throw $this->createNotFoundException('Unable to find BlopEntity entity.');
- }
-
- $em->remove($entity);
- $em->flush();
- }
-
- return $this->redirect($this->generateUrl('blopentity'));
- }
-
- /**
- * Creates a form to delete a BlopEntity entity by id.
- *
- * @param mixed $id The entity id
- *
- * @return \Symfony\Component\Form\Form The form
- */
- private function createDeleteForm($id)
- {
- return $this->createFormBuilder()
- ->setAction($this->generateUrl('blopentity_delete', array('id' => $id)))
- ->setMethod('DELETE')
- ->add('submit', 'submit', array('label' => 'Delete'))
- ->getForm()
- ;
- }
-}
diff --git a/src/Chill/CustomFieldsBundle/Controller/CustomFieldController.php b/src/Chill/CustomFieldsBundle/Controller/CustomFieldController.php
deleted file mode 100644
index adb88edd9..000000000
--- a/src/Chill/CustomFieldsBundle/Controller/CustomFieldController.php
+++ /dev/null
@@ -1,247 +0,0 @@
-getDoctrine()->getManager();
-
- $entities = $em->getRepository('ChillCustomFieldsBundle:CustomField')->findAll();
-
- //prepare form for new custom type
- $fieldChoices = array();
- foreach ($this->get('chill.custom_field_compiler')->getAllFields()
- as $key => $customType) {
- $fieldChoices[$key] = $customType->getName();
- }
- $form = $this->get('form.factory')
- ->createNamedBuilder(null, 'form', null, array(
- 'method' => 'GET',
- 'action' => $this->generateUrl('customfield_new'),
- 'csrf_protection' => false
- ))
- ->add('type', 'choice', array(
- 'choices' => $fieldChoices
- ))
- ->getForm();
-
- return $this->render('ChillCustomFieldsBundle:CustomField:index.html.twig', array(
- 'entities' => $entities,
- 'form' => $form->createView()
- ));
- }
-
-
- /**
- * Creates a new CustomField entity.
- *
- */
- public function createAction(Request $request)
- {
- $entity = new CustomField();
- $form = $this->createCreateForm($entity, $request->query->get('type', null));
- $form->handleRequest($request);
-
- if ($form->isValid()) {
- $em = $this->getDoctrine()->getManager();
- $em->persist($entity);
- $em->flush();
-
- return $this->redirect($this->generateUrl('customfield_show', array('id' => $entity->getId())));
- }
-
- return $this->render('ChillCustomFieldsBundle:CustomField:new.html.twig', array(
- 'entity' => $entity,
- 'form' => $form->createView(),
- ));
- }
-
- /**
- * Creates a form to create a CustomField entity.
- *
- * @param CustomField $entity The entity
- * @param string
- * @return \Symfony\Component\Form\Form The form
- */
- private function createCreateForm(CustomField $entity, $type)
- {
- $form = $this->createForm('custom_field_choice', $entity, array(
- 'action' => $this->generateUrl('customfield_create',
- array('type' => $type)),
- 'method' => 'POST',
- 'type' => $type
- ));
-
- $form->add('submit', 'submit', array('label' => 'Create'));
-
- return $form;
- }
-
- /**
- * Displays a form to create a new CustomField entity.
- *
- */
- public function newAction(Request $request)
- {
- $entity = new CustomField();
- $form = $this->createCreateForm($entity, $request->query->get('type'));
-
- return $this->render('ChillCustomFieldsBundle:CustomField:new.html.twig', array(
- 'entity' => $entity,
- 'form' => $form->createView(),
- ));
- }
-
- /**
- * Finds and displays a CustomField entity.
- *
- */
- public function showAction($id)
- {
- $em = $this->getDoctrine()->getManager();
-
- $entity = $em->getRepository('ChillCustomFieldsBundle:CustomField')->find($id);
-
- if (!$entity) {
- throw $this->createNotFoundException('Unable to find CustomField entity.');
- }
-
- $deleteForm = $this->createDeleteForm($id);
-
- return $this->render('ChillCustomFieldsBundle:CustomField:show.html.twig', array(
- 'entity' => $entity,
- 'delete_form' => $deleteForm->createView(),
- ));
- }
-
- /**
- * Displays a form to edit an existing CustomField entity.
- *
- */
- public function editAction($id)
- {
- $em = $this->getDoctrine()->getManager();
-
- $entity = $em->getRepository('ChillCustomFieldsBundle:CustomField')->find($id);
-
- if (!$entity) {
- throw $this->createNotFoundException('Unable to find CustomField entity.');
- }
-
- $editForm = $this->createEditForm($entity, $entity->getType());
- $deleteForm = $this->createDeleteForm($id);
-
- return $this->render('ChillCustomFieldsBundle:CustomField:edit.html.twig', array(
- 'entity' => $entity,
- 'edit_form' => $editForm->createView(),
- 'delete_form' => $deleteForm->createView(),
- ));
- }
-
- /**
- * Creates a form to edit a CustomField entity.
- *
- * @param CustomField $entity The entity
- *
- * @return \Symfony\Component\Form\Form The form
- */
- private function createEditForm(CustomField $entity, $type)
- {
- $form = $this->createForm('custom_field_choice', $entity, array(
- 'action' => $this->generateUrl('customfield_update', array('id' => $entity->getId())),
- 'method' => 'PUT',
- 'type' => $type
- ));
-
- $form->add('submit', 'submit', array('label' => 'Update'));
-
- return $form;
- }
- /**
- * Edits an existing CustomField entity.
- *
- */
- public function updateAction(Request $request, $id)
- {
- $em = $this->getDoctrine()->getManager();
-
- $entity = $em->getRepository('ChillCustomFieldsBundle:CustomField')->find($id);
-
- if (!$entity) {
- throw $this->createNotFoundException('Unable to find CustomField entity.');
- }
-
- $deleteForm = $this->createDeleteForm($id);
- $editForm = $this->createEditForm($entity);
- $editForm->handleRequest($request);
-
- if ($editForm->isValid()) {
- $em->flush();
-
- return $this->redirect($this->generateUrl('customfield_edit', array('id' => $id)));
- }
-
- return $this->render('ChillCustomFieldsBundle:CustomField:edit.html.twig', array(
- 'entity' => $entity,
- 'edit_form' => $editForm->createView(),
- 'delete_form' => $deleteForm->createView(),
- ));
- }
- /**
- * Deletes a CustomField entity.
- *
- */
- public function deleteAction(Request $request, $id)
- {
- $form = $this->createDeleteForm($id);
- $form->handleRequest($request);
-
- if ($form->isValid()) {
- $em = $this->getDoctrine()->getManager();
- $entity = $em->getRepository('ChillCustomFieldsBundle:CustomField')->find($id);
-
- if (!$entity) {
- throw $this->createNotFoundException('Unable to find CustomField entity.');
- }
-
- $em->remove($entity);
- $em->flush();
- }
-
- return $this->redirect($this->generateUrl('customfield'));
- }
-
- /**
- * Creates a form to delete a CustomField entity by id.
- *
- * @param mixed $id The entity id
- *
- * @return \Symfony\Component\Form\Form The form
- */
- private function createDeleteForm($id)
- {
- return $this->createFormBuilder()
- ->setAction($this->generateUrl('customfield_delete', array('id' => $id)))
- ->setMethod('DELETE')
- ->add('submit', 'submit', array('label' => 'Delete'))
- ->getForm()
- ;
- }
-}
diff --git a/src/Chill/CustomFieldsBundle/Controller/CustomFieldsGroupController.php b/src/Chill/CustomFieldsBundle/Controller/CustomFieldsGroupController.php
deleted file mode 100644
index bd8ff2b0f..000000000
--- a/src/Chill/CustomFieldsBundle/Controller/CustomFieldsGroupController.php
+++ /dev/null
@@ -1,224 +0,0 @@
-getDoctrine()->getManager();
-
- $entities = $em->getRepository('ChillCustomFieldsBundle:CustomFieldsGroup')->findAll();
-
- return $this->render('ChillCustomFieldsBundle:CustomFieldsGroup:index.html.twig', array(
- 'entities' => $entities,
- ));
- }
- /**
- * Creates a new CustomFieldsGroup entity.
- *
- */
- public function createAction(Request $request)
- {
- $entity = new CustomFieldsGroup();
- $form = $this->createCreateForm($entity);
- $form->handleRequest($request);
-
- if ($form->isValid()) {
- $em = $this->getDoctrine()->getManager();
- $em->persist($entity);
- $em->flush();
-
- return $this->redirect($this->generateUrl('customfieldsgroup_show', array('id' => $entity->getId())));
- }
-
- return $this->render('ChillCustomFieldsBundle:CustomFieldsGroup:new.html.twig', array(
- 'entity' => $entity,
- 'form' => $form->createView(),
- ));
- }
-
- /**
- * Creates a form to create a CustomFieldsGroup entity.
- *
- * @param CustomFieldsGroup $entity The entity
- *
- * @return \Symfony\Component\Form\Form The form
- */
- private function createCreateForm(CustomFieldsGroup $entity)
- {
- $form = $this->createForm('custom_fields_group', $entity, array(
- 'action' => $this->generateUrl('customfieldsgroup_create'),
- 'method' => 'POST',
- ));
-
- $form->add('submit', 'submit', array('label' => 'Create'));
-
- return $form;
- }
-
- /**
- * Displays a form to create a new CustomFieldsGroup entity.
- *
- */
- public function newAction()
- {
- $entity = new CustomFieldsGroup();
- $form = $this->createCreateForm($entity);
-
- return $this->render('ChillCustomFieldsBundle:CustomFieldsGroup:new.html.twig', array(
- 'entity' => $entity,
- 'form' => $form->createView(),
- ));
- }
-
- /**
- * Finds and displays a CustomFieldsGroup entity.
- *
- */
- public function showAction($id)
- {
- $em = $this->getDoctrine()->getManager();
-
- $entity = $em->getRepository('ChillCustomFieldsBundle:CustomFieldsGroup')->find($id);
-
- if (!$entity) {
- throw $this->createNotFoundException('Unable to find CustomFieldsGroup entity.');
- }
-
- $deleteForm = $this->createDeleteForm($id);
-
- return $this->render('ChillCustomFieldsBundle:CustomFieldsGroup:show.html.twig', array(
- 'entity' => $entity,
- 'delete_form' => $deleteForm->createView(),
- ));
- }
-
- /**
- * Displays a form to edit an existing CustomFieldsGroup entity.
- *
- */
- public function editAction($id)
- {
- $em = $this->getDoctrine()->getManager();
-
- $entity = $em->getRepository('ChillCustomFieldsBundle:CustomFieldsGroup')->find($id);
-
- if (!$entity) {
- throw $this->createNotFoundException('Unable to find CustomFieldsGroup entity.');
- }
-
- $editForm = $this->createEditForm($entity);
- $deleteForm = $this->createDeleteForm($id);
-
- return $this->render('ChillCustomFieldsBundle:CustomFieldsGroup:edit.html.twig', array(
- 'entity' => $entity,
- 'edit_form' => $editForm->createView(),
- 'delete_form' => $deleteForm->createView(),
- ));
- }
-
- /**
- * Creates a form to edit a CustomFieldsGroup entity.
- *
- * @param CustomFieldsGroup $entity The entity
- *
- * @return \Symfony\Component\Form\Form The form
- */
- private function createEditForm(CustomFieldsGroup $entity)
- {
- $form = $this->createForm('custom_fields_group', $entity, array(
- 'action' => $this->generateUrl('customfieldsgroup_update', array('id' => $entity->getId())),
- 'method' => 'PUT',
- ));
-
- $form->add('submit', 'submit', array('label' => 'Update'));
-
- return $form;
- }
- /**
- * Edits an existing CustomFieldsGroup entity.
- *
- */
- public function updateAction(Request $request, $id)
- {
- $em = $this->getDoctrine()->getManager();
-
- $entity = $em->getRepository('ChillCustomFieldsBundle:CustomFieldsGroup')->find($id);
-
- if (!$entity) {
- throw $this->createNotFoundException('Unable to find CustomFieldsGroup entity.');
- }
-
- $deleteForm = $this->createDeleteForm($id);
- $editForm = $this->createEditForm($entity);
- $editForm->handleRequest($request);
-
- if ($editForm->isValid()) {
- $em->flush();
-
- return $this->redirect($this->generateUrl('customfieldsgroup_edit', array('id' => $id)));
- }
-
- return $this->render('ChillCustomFieldsBundle:CustomFieldsGroup:edit.html.twig', array(
- 'entity' => $entity,
- 'edit_form' => $editForm->createView(),
- 'delete_form' => $deleteForm->createView(),
- ));
- }
- /**
- * Deletes a CustomFieldsGroup entity.
- *
- */
- public function deleteAction(Request $request, $id)
- {
- $form = $this->createDeleteForm($id);
- $form->handleRequest($request);
-
- if ($form->isValid()) {
- $em = $this->getDoctrine()->getManager();
- $entity = $em->getRepository('ChillCustomFieldsBundle:CustomFieldsGroup')->find($id);
-
- if (!$entity) {
- throw $this->createNotFoundException('Unable to find CustomFieldsGroup entity.');
- }
-
- $em->remove($entity);
- $em->flush();
- }
-
- return $this->redirect($this->generateUrl('customfieldsgroup'));
- }
-
- /**
- * Creates a form to delete a CustomFieldsGroup entity by id.
- *
- * @param mixed $id The entity id
- *
- * @return \Symfony\Component\Form\Form The form
- */
- private function createDeleteForm($id)
- {
- return $this->createFormBuilder()
- ->setAction($this->generateUrl('customfieldsgroup_delete', array('id' => $id)))
- ->setMethod('DELETE')
- ->add('submit', 'submit', array('label' => 'Delete'))
- ->getForm()
- ;
- }
-}
diff --git a/src/Chill/CustomFieldsBundle/Controller/DefaultController.php b/src/Chill/CustomFieldsBundle/Controller/DefaultController.php
deleted file mode 100644
index b1f433c36..000000000
--- a/src/Chill/CustomFieldsBundle/Controller/DefaultController.php
+++ /dev/null
@@ -1,13 +0,0 @@
-render('ChillCustomFieldsBundle:Default:index.html.twig', array('name' => $name));
- }
-}
diff --git a/src/Chill/CustomFieldsBundle/CustomFields/CustomFieldAddress.php b/src/Chill/CustomFieldsBundle/CustomFields/CustomFieldAddress.php
deleted file mode 100644
index dbcf5efd9..000000000
--- a/src/Chill/CustomFieldsBundle/CustomFields/CustomFieldAddress.php
+++ /dev/null
@@ -1,91 +0,0 @@
-
- */
-class CustomFieldAddress implements CustomFieldInterface
-{
-
- /**
- *
- * @var EntityManagerInterface
- */
- public $om;
-
- public function __construct(EntityManagerInterface $om)
- {
- $this->om = $om;
- }
-
- public function buildForm(FormBuilderInterface $builder, CustomField $customField)
- {
- $builder->add(
- $builder->create('address', 'entity', array(
- 'class' => 'ChillCustomFieldsBundle:Adress',
- 'multiple' => true,
- 'expanded' => true
- )
- )->addModelTransformer(new CustomFieldDataTransformer(
- $this,
- $customField)
- )
- );
- }
-
- public function getName()
- {
- return 'CF address';
- }
-
- public function render($value, CustomField $customField)
- {
-
- }
-
- public function buildOptionsForm(FormBuilderInterface $builder)
- {
- return null;
- }
-
- public function deserialize($serialized, CustomField $customField)
- {
-// if ($serialized === NULL) {
-// return null;
-// }
-//
-// return $this->om->getRepository('ChillCustomFieldsBundle:Adress')
-// ->find($serialized);
-
- return $this->om->getRepository('ChillCustomFieldsBundle:Adress')
- ->findBy(array('id' => $serialized));
- }
-
- /**
- *
- * @param \Chill\CustomFieldsBundle\Entity\Adress $value
- * @param CustomField $customField
- * @return type
- */
- public function serialize($value, CustomField $customField)
- {
- $arrayId = array();
-
- foreach($value as $address) {
- $arrayId[] = $address->getId();
- }
-
- return $arrayId;
- }
-
-}
diff --git a/src/Chill/CustomFieldsBundle/CustomFields/CustomFieldChoiceWithOther.php b/src/Chill/CustomFieldsBundle/CustomFields/CustomFieldChoiceWithOther.php
deleted file mode 100644
index 9b0085f2f..000000000
--- a/src/Chill/CustomFieldsBundle/CustomFields/CustomFieldChoiceWithOther.php
+++ /dev/null
@@ -1,19 +0,0 @@
-
- */
-class CustomFieldChoiceWithOther
-{
- //put your code here
-}
diff --git a/src/Chill/CustomFieldsBundle/CustomFields/CustomFieldInterface.php b/src/Chill/CustomFieldsBundle/CustomFields/CustomFieldInterface.php
deleted file mode 100644
index 5d1e1b978..000000000
--- a/src/Chill/CustomFieldsBundle/CustomFields/CustomFieldInterface.php
+++ /dev/null
@@ -1,57 +0,0 @@
-
- */
-interface CustomFieldInterface
-{
-
- /**
- *
- * @param \Chill\CustomFieldsBundle\CustomField\FormBuilderInterface $builder
- * @param \Chill\CustomFieldsBundle\CustomField\CustomField $customField
- * @return \Symfony\Component\Form\FormTypeInterface the form type
- */
- public function buildForm(FormBuilderInterface $builder, CustomField $customField);
-
- /**
- * transform the value into a format that can be stored in DB
- *
- * @param mixed $value
- * @param \Chill\CustomFieldsBundle\CustomField\CustomField $customField
- */
- public function serialize($value, CustomField $customField);
-
- /**
- * Transform the representation of the value, stored in db, into the
- * value which may be used in the process.
- *
- * @param mixed $value
- * @param \Chill\CustomFieldsBundle\CustomField\CustomField $customField
- */
- public function deserialize($serialized, CustomField $customField);
-
- /**
- *
- * @param type $value
- * @param \Chill\CustomFieldsBundle\CustomField\CustomField $customField
- */
- public function render($value, CustomField $customField);
-
- public function getName();
-
- /**
- * return a formType which allow to edit option for the custom type.
- * This FormType is shown in admin
- *
- * @param \Chill\CustomFieldsBundle\CustomField\FormBuilderInterface $builder
- * @return \Symfony\Component\Form\FormTypeInterface|null the form type
- */
- public function buildOptionsForm(FormBuilderInterface $builder);
-}
diff --git a/src/Chill/CustomFieldsBundle/CustomFields/CustomFieldText.php b/src/Chill/CustomFieldsBundle/CustomFields/CustomFieldText.php
deleted file mode 100644
index 3aab4a153..000000000
--- a/src/Chill/CustomFieldsBundle/CustomFields/CustomFieldText.php
+++ /dev/null
@@ -1,49 +0,0 @@
-
- */
-class CustomFieldText implements CustomFieldInterface
-{
- public function buildForm(FormBuilderInterface $builder, CustomField $customField)
- {
- $builder->add($customField->getSlug(), 'text', array(
- 'label' => $customField->getLabel()
- ));
- }
-
- public function render($value, CustomField $customField)
- {
-
- }
-
- public function serialize($value, CustomField $customField)
- {
- return $value;
- }
-
- public function deserialize($serialized, CustomField $customField)
- {
- return $serialized;
- }
-
- public function getName()
- {
- return 'text field';
- }
-
- public function buildOptionsForm(FormBuilderInterface $builder)
- {
- return null;
- }
-}
diff --git a/src/Chill/CustomFieldsBundle/DependencyInjection/ChillCustomFieldsExtension.php b/src/Chill/CustomFieldsBundle/DependencyInjection/ChillCustomFieldsExtension.php
deleted file mode 100644
index 5d5eb4de5..000000000
--- a/src/Chill/CustomFieldsBundle/DependencyInjection/ChillCustomFieldsExtension.php
+++ /dev/null
@@ -1,36 +0,0 @@
-processConfiguration($configuration, $configs);
-
- $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
- $loader->load('services.yml');
-
- //add at least a blank array at 'customizable_entities' options
- //$customizable_entities = (isset($config['customizables_entities'])
- // && $config['customizables_entities'] !== FALSE)
- // ? $config['customizables_entities'] : array();
-
- $container->setParameter('chill_custom_fields.customizables_entities',
- $config['customizables_entities']);
- }
-}
diff --git a/src/Chill/CustomFieldsBundle/DependencyInjection/Configuration.php b/src/Chill/CustomFieldsBundle/DependencyInjection/Configuration.php
deleted file mode 100644
index 472ce105a..000000000
--- a/src/Chill/CustomFieldsBundle/DependencyInjection/Configuration.php
+++ /dev/null
@@ -1,43 +0,0 @@
-root('chill_custom_fields');
-
- $classInfo = "The class which may receive custom fields";
- $nameInfo = "The name which will appears in the user interface. May be translatable";
- $customizableEntitiesInfo = "A list of customizable entities";
-
- $rootNode
- ->children()
- ->arrayNode('customizables_entities')
- ->info($customizableEntitiesInfo)
- ->defaultValue(array())
- ->prototype('array')
- ->children()
- ->scalarNode('class')->isRequired()->info($classInfo)->end()
- ->scalarNode('name') ->isRequired()->info($nameInfo) ->end()
- ->end()
- ->end()
- ->end()
- ;
-
- return $treeBuilder;
- }
-}
diff --git a/src/Chill/CustomFieldsBundle/DependencyInjection/CustomFieldCompilerPass.php b/src/Chill/CustomFieldsBundle/DependencyInjection/CustomFieldCompilerPass.php
deleted file mode 100644
index 94eb4d9c3..000000000
--- a/src/Chill/CustomFieldsBundle/DependencyInjection/CustomFieldCompilerPass.php
+++ /dev/null
@@ -1,43 +0,0 @@
-
- */
-class CustomFieldCompilerPass implements CompilerPassInterface
-{
- public function process(ContainerBuilder $container)
- {
- if (!$container->hasDefinition('chill.custom_field_compiler')) {
- throw new \LogicException('service chill.custom_field_compiler '
- . 'is not defined.');
- }
-
- $definition = $container->getDefinition(
- 'chill.custom_field_compiler'
- );
-
- $taggedServices = $container->findTaggedServiceIds(
- 'chill.custom_field'
- );
-
- foreach ($taggedServices as $id => $tagAttributes) {
- foreach ($tagAttributes as $attributes) {
- $definition->addMethodCall(
- 'addCustomField',
- array(new Reference($id), $attributes["type"])
- );
- }
- }
- }
-
-}
diff --git a/src/Chill/CustomFieldsBundle/Entity/Adress.php b/src/Chill/CustomFieldsBundle/Entity/Adress.php
deleted file mode 100644
index a1fdc8457..000000000
--- a/src/Chill/CustomFieldsBundle/Entity/Adress.php
+++ /dev/null
@@ -1,59 +0,0 @@
-data . '(id:' .$this->id .')';
- }
-
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
-
- /**
- * Set data
- *
- * @param string $data
- *
- * @return Adress
- */
- public function setData($data)
- {
- $this->data = $data;
-
- return $this;
- }
-
- /**
- * Get data
- *
- * @return string
- */
- public function getData()
- {
- return $this->data;
- }
-}
diff --git a/src/Chill/CustomFieldsBundle/Entity/BlopEntity.php b/src/Chill/CustomFieldsBundle/Entity/BlopEntity.php
deleted file mode 100644
index b321559a1..000000000
--- a/src/Chill/CustomFieldsBundle/Entity/BlopEntity.php
+++ /dev/null
@@ -1,161 +0,0 @@
-id;
- }
-
- public function setAdress($a)
- {
- $this->adress = $a;
-
- return $this;
- }
-
- /**
- * Get field1
- *
- * @return string
- */
- public function getAdress()
- {
- return $this->adress;
- }
-
- /**
- * Set field1
- *
- * @param string $field1
- *
- * @return BlopEntity
- */
- public function setField1($field1)
- {
- $this->field1 = $field1;
-
- return $this;
- }
-
- /**
- * Get field1
- *
- * @return string
- */
- public function getField1()
- {
- return $this->field1;
- }
-
- /**
- * Set field2
- *
- * @param string $field2
- *
- * @return BlopEntity
- */
- public function setField2($field2)
- {
- $this->field2 = $field2;
-
- return $this;
- }
-
- /**
- * Get field2
- *
- * @return string
- */
- public function getField2()
- {
- return $this->field2;
- }
-
- /**
- * Set customField
- *
- * @param array $customField
- *
- * @return BlopEntity
- */
- public function setCustomField(array $customField)
- {
- $this->customField = $customField;
-
- return $this;
- }
-
- /**
- * Get customField
- *
- * @return array
- */
- public function getCustomField()
- {
-
- return $this->customField;
- }
-
- public function cfGet($key)
- {
- echo "
-1-
";
- echo gettype($this->customField);
- echo "
-2-
";
- echo $this->customField;
- echo "
-3-
";
- var_dump(json_decode($this->customField));
- echo "
-4-
";
- echo json_last_error_msg();
-
- $customFieldArray = json_decode($this->customField, true);
-
- if(array_key_exists($key, $customFieldArray)) {
- return $customFieldArray[$key];
- } else {
- return null;
- }
- }
-
- public function cfSet($key, $value)
- {
- echo "-";
- $customFieldArray = json_decode($this->customField, true);
- $customFieldArray[$key] = $value;
- $this->setCustomField(json_encode($customFieldArray));
- var_dump($customFieldArray);
- }
-}
diff --git a/src/Chill/CustomFieldsBundle/Entity/BlopEntity2.php b/src/Chill/CustomFieldsBundle/Entity/BlopEntity2.php
deleted file mode 100644
index 60b4682ad..000000000
--- a/src/Chill/CustomFieldsBundle/Entity/BlopEntity2.php
+++ /dev/null
@@ -1,247 +0,0 @@
- obj dans des choses qui existent deja
-// preFlush avant mise a jour de la db
-// - met a jour les donnees liees au json et le json
-// perPersist idem mais pour le persist
-
-/**
- * BlopEntity2
- */
-class BlopEntity2
-{
- /**
- * @var integer
- */
- private $id;
-
- /**
- * @var array
- */
- private $customFieldData;
- private $customFieldDataArray = array(); // customField apres json_decode
- private $customFieldDataUnfolded = array(); // mise des entity de customFieldDataArray
-
- private $customFieldConfigs = array();
-
- private $customFieldConfigsLoaded = false;
-
- // CHARGE DE LA DB LA CONFIG DES CUSTOM FIELDS
- public function loadCustomFieldConfig(LifecycleEventArgs $args)
- {
- $em = $args->getObjectManager();
-
- $customFields = $em
- ->getRepository('ChillCustomFieldsBundle:CustomField')
- ->findAll();
-
- $customFieldsLablels = array_map(
- function($e) { return $e->getLabel(); },
- $customFields);
-
- $this->customFieldConfigs = array_combine($customFieldsLablels, $customFields);
- $this->customFieldConfigsLoaded = true;
- }
-
- // A PARTIR DU JSON CREE LES OBJETS (MIS DANS customFieldDataUnfolded)
- public function unfoldCustomFieldData(LifecycleEventArgs $args)
- {
- $em = $args->getObjectManager();
-
- $customFieldDataArray = json_decode($this->customFieldData,true);
- $customFieldDataUnfolded = array();
-
- foreach ($this->customFieldConfigs as $key => $cfConfig) {
- $type = $cfConfig->getType();
- if(strpos($type,'ManyToMany') === 0) {
- $fieldUnfolded = new ArrayCollection();
-
- if(array_key_exists($key, $customFieldDataArray)) {
- $entityClass = substr($type, 11, -1);
-
- foreach ($customFieldDataArray[$key] as $idEntity) {
- $fieldUnfolded->add($em
- ->getRepository('ChillCustomFieldsBundle:' . $entityClass)
- ->findOneById($idEntity));
- }
- }
-
- $customFieldDataUnfolded[$key] = $fieldUnfolded;
- } else if(strpos($type,'ManyToOne') === 0) {
- $entityClass = 'Adress'; // substr($type,10,-1);
- if(array_key_exists($key, $customFieldDataArray)) {
- $customFieldDataUnfolded[$key] = $em
- ->getRepository('ChillCustomFieldsBundle:' . $entityClass)
- ->findOneById($customFieldDataArray[$key]);
- } else {
- // TODO : doit tjs avoir un id
- $em
- ->getRepository('ChillCustomFieldsBundle:' . $entityClass)
- ->findOneById(1);
- }
- }
- else if ($type === 'text') {
- if(array_key_exists($key, $customFieldDataArray)) {
- $customFieldDataUnfolded[$key] = $customFieldDataArray[$key];
- } else {
- $customFieldDataUnfolded[$key] = '';
- }
- }
- }
-
- $this->customFieldDataUnfolded = $customFieldDataUnfolded;
- }
-
- // AVANT PERSIST LES ELEMENTS QUI N'ONT PAS D'ID DOIVENT EN AVOIR UN (OM->PERSIST(OBJ))
- // PUIS PASSAGE DES OBJETS (SE TROUVANT DANS customFieldDataUnfolded) VERS
- // LE JSON (SE TROUVANT DANS customFieldData)
- public function prePersist(LifecycleEventArgs $args)
- {
- $em = $args->getObjectManager();
-
- $this->loadCustomFieldConfig($args);
-
- foreach ($this->customFieldDataUnfolded as $key => $unfoldedData) {
- $type = $this->customFieldConfigs[$key]->getType();
- if(strpos($type,'ManyToMany') === 0) {
- foreach ($this->customFieldDataUnfolded[$key] as $entity) {
- if(! $entity->getId()) {
- $em->persist($entity);
- }
- }
- } else if(strpos($type,'ManyToOne') === 0) {
- if(! $this->customFieldDataUnfolded[$key]->getId()) {
- $em->persist($this->customFieldDataUnfolded[$key]);
- }
- }
- }
-
- $this->customFieldDataUnfoldedToCustomField();
- }
-
- // PUIS PASSAGE DES OBJETS (SE TROUVANT DANS customFieldDataUnfolded) VERS
- // LE JSON (SE TROUVANT DANS customFieldData)
- public function preFlush(PreFlushEventArgs $args)
- {
- $this->customFieldDataUnfoldedToCustomField();
- }
-
- // PUIS PASSAGE DES OBJETS (SE TROUVANT DANS customFieldDataUnfolded) VERS
- // LE JSON (SE TROUVANT DANS customFieldData)
- public function customFieldDataUnfoldedToCustomField()
- {
- // MISE A JOUR DE customFieldDataArray
- foreach ($this->customFieldConfigs as $key => $cfConfig) {
- $type = $cfConfig->getType();
- if(strpos($type,'ManyToMany') === 0) {
- $arrayMapRet = array();
- foreach ($this->customFieldDataUnfolded[$key] as $entity) {
- $arrayMapRet[] = $entity->getId();
- }
- $this->customFieldDataArray[$key] = $arrayMapRet; // array_map(function($e) { $e->getId(); }, $this->customFieldDataUnfolded[$key]);
- } else if(strpos($type,'ManyToOne') === 0) {
- if(array_key_exists($key, $this->customFieldDataUnfolded)) {
- $this->customFieldDataArray[$key] = $this->customFieldDataUnfolded[$key]->getId();
- } else {
- // normalement $this->customFieldDataArray[$key] ne doit pas exister
- if(array_key_exists($key, $this->customFieldDataArray)) {
- throw new Exception("Error Processing Request", 1);
- }
- //retirer de $this->customFieldDataArray[$key]
- }
- } else if ($type === 'text') {
- $this->customFieldDataArray[$key] = $this->customFieldDataUnfolded[$key];
- }
- }
-
- // MISE A JOUR DE CustomFieldData
- $this->setCustomFieldData(json_encode($this->customFieldDataArray));
- }
-
- public function __set($fieldName, $value) {
- $setMethodName = 'set' . ucfirst($fieldName);
-
- if(method_exists($this, $setMethodName)) {
- return $this->{$setMethodName}($value);
- }
-
- if(array_key_exists($fieldName, $this->customFieldConfigs)) {
- $this->customFieldDataUnfolded[$fieldName] = $value;
- } else if (!$this->customFieldConfigsLoaded) { // nouvel object pas eu d'appel doctrine avant
- $this->customFieldDataUnfolded[$fieldName] = $value;
- } else {
- throw new Exception("Error Processing Request", 1);
- }
- }
-
- public function __get($fieldName) {
- $getMethodName = 'get' . ucfirst($fieldName);
-
- if(method_exists($this, $getMethodName)) {
- return $this->{$getMethodName}();
- }
-
- if(array_key_exists($fieldName, $this->customFieldDataUnfolded)) {
- return $this->customFieldDataUnfolded[$fieldName];
- } else if (!$this->customFieldConfigsLoaded) { // nouvel object pas eu d'appel doctrine avant
- return null;
- } else if(array_key_exists($fieldName, $this->customFieldConfigs)) { // pas init
- return null;
- } else {
- throw new Exception("Error Processing Request", 1);
- }
- }
-
-
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
-
- /**
- * Set customField
- *
- * @param array $customField
- *
- * @return BlopEntity2
- */
- public function setCustomFieldData($customFieldData)
- {
- $this->customFieldData = $customFieldData;
- return $this;
- }
-
- /**
- * Get customField
- *
- * @return array
- */
- public function getCustomFieldData()
- {
- return $this->customFieldData;
- }
-}
diff --git a/src/Chill/CustomFieldsBundle/Entity/CustomField.php b/src/Chill/CustomFieldsBundle/Entity/CustomField.php
deleted file mode 100644
index 052b2f8a2..000000000
--- a/src/Chill/CustomFieldsBundle/Entity/CustomField.php
+++ /dev/null
@@ -1,280 +0,0 @@
-id;
- }
-
- function getSlug()
- {
- return $this->slug;
- }
-
- /**
- * Set label
- *
- * @param string $label
- *
- * @return CustomField
- */
- public function setLabel($label)
- {
- $this->label = $label;
-
- if ($this->slug === NULL) {
- $this->slug = preg_replace('/[^A-Za-z0-9-]+/', '-', $label);
- }
-
- return $this;
- }
-
- function getOptions()
- {
- return $this->options;
- }
-
- /**
- * Get label
- *
- * @return string
- */
- public function getLabel()
- {
- return $this->label;
- }
-
- /**
- * Set type
- *
- * @param string $type
- *
- * @return CustomField
- */
- public function setType($type)
- {
- $this->type = $type;
-
- return $this;
- }
-
- /**
- * Get type
- *
- * @return string
- */
- public function getType()
- {
- return $this->type;
- }
-
- function getRelation()
- {
- return $this->relation;
- }
-
- function setRelation($relation)
- {
- $this->relation = $relation;
-
- return $this;
- }
-
-
- /**
- * Set active
- *
- * @param boolean $active
- *
- * @return CustomField
- */
- public function setActive($active)
- {
- $this->active = $active;
-
- return $this;
- }
-
- /**
- * Get active
- *
- * @return boolean
- */
- public function getActive()
- {
- return $this->active;
- }
-
- /**
- * Get customFieldGroup
- *
- * @return CustomFieldsGroup
- */
- public function getCustomFieldsGroup()
- {
- return $this->customFieldGroup;
- }
-
- /**
- * Set customFieldGroup
- *
- * @param \Chill\CustomFieldsBundle\Entity\CustomFieldsGroup $customFieldGroup
- *
- * @return CustomField
- */
- public function setCustomFieldsGroup(\Chill\CustomFieldsBundle\Entity\CustomFieldsGroup $customFieldGroup = null)
- {
- $this->customFieldGroup = $customFieldGroup;
-
- return $this;
- }
-
- /**
- * Set name
- *
- * @param array $name
- *
- * @return CustomField
- */
- public function setName($name)
- {
- $this->name = $name;
-
- return $this;
- }
-
- /**
- * Get name
- *
- * @return array
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Set order
- *
- * @param float $order
- *
- * @return CustomField
- */
- public function setOrdering($order)
- {
- $this->ordering = $order;
-
- return $this;
- }
-
- /**
- * Get order
- *
- * @return float
- */
- public function getOrdering()
- {
- return $this->ordering;
- }
-
- /**
- * Set options
- *
- * @param array $options
- *
- * @return CustomField
- */
- public function setOptions(array $options)
- {
- $this->options = $options;
-
- return $this;
- }
-
- /**
- * Set customFieldGroup
- *
- * @param \Chill\CustomFieldsBundle\Entity\CustomFieldsGroup $customFieldGroup
- *
- * @return CustomField
- */
- public function setCustomFieldGroup(\Chill\CustomFieldsBundle\Entity\CustomFieldsGroup $customFieldGroup = null)
- {
- $this->customFieldGroup = $customFieldGroup;
-
- return $this;
- }
-
- /**
- * Get customFieldGroup
- *
- * @return \Chill\CustomFieldsBundle\Entity\CustomFieldsGroup
- */
- public function getCustomFieldGroup()
- {
- return $this->customFieldGroup;
- }
-}
diff --git a/src/Chill/CustomFieldsBundle/Entity/CustomFieldsGroup.php b/src/Chill/CustomFieldsBundle/Entity/CustomFieldsGroup.php
deleted file mode 100644
index fe09a25ea..000000000
--- a/src/Chill/CustomFieldsBundle/Entity/CustomFieldsGroup.php
+++ /dev/null
@@ -1,146 +0,0 @@
-customFields = new \Doctrine\Common\Collections\ArrayCollection();
- }
-
- /**
- * Add customField
- *
- * @param \Chill\CustomFieldsBundle\Entity\CustomField $customField
- *
- * @return CustomFieldsGroup
- */
- public function addCustomField(\Chill\CustomFieldsBundle\Entity\CustomField $customField)
- {
- $this->customFields[] = $customField;
-
- return $this;
- }
-
- /**
- * Remove customField
- *
- * @param \Chill\CustomFieldsBundle\Entity\CustomField $customField
- */
- public function removeCustomField(\Chill\CustomFieldsBundle\Entity\CustomField $customField)
- {
- $this->customFields->removeElement($customField);
- }
-
- /**
- *
- * @return \Doctrine\Common\Collections\Collection
- */
- public function getCustomFields()
- {
- return $this->customFields;
- }
-
-
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
-
- /**
- * Set name
- *
- * @param array $name
- *
- * @return CustomFieldsGroup
- */
- public function setName($name)
- {
- $this->name = $name;
-
- return $this;
- }
-
- /**
- * Get name
- *
- * @return array
- */
- public function getName($language = null)
- {
- //TODO set this in a service, PLUS twig function
- if ($language) {
- if (isset($this->name[$language])) {
- return $this->name[$language];
- } else {
- foreach ($this->name as $name) {
- if (!empty($name)) {
- return $name;
- }
- }
- }
-
- return '';
-
- } else {
- return $this->name;
- }
- }
-
- /**
- * Set entity
- *
- * @param string $entity
- *
- * @return CustomFieldsGroup
- */
- public function setEntity($entity)
- {
- $this->entity = $entity;
-
- return $this;
- }
-
- /**
- * Get entity
- *
- * @return string
- */
- public function getEntity()
- {
- return $this->entity;
- }
-
-}
diff --git a/src/Chill/CustomFieldsBundle/Form/AdressType.php b/src/Chill/CustomFieldsBundle/Form/AdressType.php
deleted file mode 100644
index 677e7acd6..000000000
--- a/src/Chill/CustomFieldsBundle/Form/AdressType.php
+++ /dev/null
@@ -1,52 +0,0 @@
-add('data', 'entity', array(
-
- ))
- ;
- }
-
- /**
- * @param OptionsResolverInterface $resolver
- */
- public function setDefaultOptions(OptionsResolverInterface $resolver)
- {
-// $resolver->setDefaults(array(
-// 'data_class' => 'Chill\CustomFieldsBundle\Entity\Adress',
-// 'class' => 'Chill\CustomFieldsBundle\Entity\Adress'
-// ));
- }
-
- public function getParent()
- {
- return 'entity';
- }
-
- /**
- * @return string
- */
- public function getName()
- {
- return 'adress';
- }
-}
diff --git a/src/Chill/CustomFieldsBundle/Form/BlopEntity2Type.php b/src/Chill/CustomFieldsBundle/Form/BlopEntity2Type.php
deleted file mode 100644
index e885bcf81..000000000
--- a/src/Chill/CustomFieldsBundle/Form/BlopEntity2Type.php
+++ /dev/null
@@ -1,69 +0,0 @@
-getRepository('ChillCustomFieldsBundle:CustomField')
- ->findAll();
-
- foreach ($customFields as $cf) {
- if($cf->getType() === 'ManyToOne(Adress)') {
- $builder->add($cf->getLabel(), 'entity', array(
- 'class' => 'ChillCustomFieldsBundle:Adress',
- 'property' => 'data'
- ));
- } else if ($cf->getType() === 'ManyToOnePersist(Adress)') {
- $builder->add($cf->getLabel(), new AdressType());
- } else if($cf->getType() === 'ManyToMany(Adress)') {
- $builder->add($cf->getLabel(), 'entity', array(
- 'class' => 'ChillCustomFieldsBundle:Adress',
- 'property' => 'data',
- 'multiple' => true
- ));
- } else if ($cf->getType() === 'text') {
- $builder->add($cf->getLabel(), 'text');
- }
- }
- }
-
- /**
- * @param OptionsResolverInterface $resolver
- */
- public function setDefaultOptions(OptionsResolverInterface $resolver)
- {
- $resolver->setDefaults(array(
- 'data_class' => 'Chill\CustomFieldsBundle\Entity\BlopEntity2'
- ));
-
- // supprimer ça en definissant dans services
- $resolver->setRequired(array(
- 'em',
- ));
-
- $resolver->setAllowedTypes(array(
- 'em' => 'Doctrine\Common\Persistence\ObjectManager',
- ));
- }
-
- /**
- * @return string
- */
- public function getName()
- {
- return 'cl_customfieldsbundle_blopentity2';
- }
-}
diff --git a/src/Chill/CustomFieldsBundle/Form/BlopEntityType.php b/src/Chill/CustomFieldsBundle/Form/BlopEntityType.php
deleted file mode 100644
index fdbf26dd1..000000000
--- a/src/Chill/CustomFieldsBundle/Form/BlopEntityType.php
+++ /dev/null
@@ -1,56 +0,0 @@
-add('field1')
- ->add('field2')
- //->add('adress', new AdressType())
- ->add('customField', 'custom_field')
- ;
- }
-
- /**
- * @param OptionsResolverInterface $resolver
- */
- public function setDefaultOptions(OptionsResolverInterface $resolver)
- {
- $resolver->setDefaults(array(
- 'data_class' => 'Chill\CustomFieldsBundle\Entity\BlopEntity',
- 'cascade_validation' => true
- ));
-
- // supprimer ça en definissant dans services
- $resolver->setRequired(array(
- 'em',
- ));
-
- $resolver->setAllowedTypes(array(
- 'em' => 'Doctrine\Common\Persistence\ObjectManager',
- ));
-
- }
-
- /**
- * @return string
- */
- public function getName()
- {
- return 'cl_customfieldsbundle_blopentity';
- }
-}
diff --git a/src/Chill/CustomFieldsBundle/Form/CustomFieldType.php b/src/Chill/CustomFieldsBundle/Form/CustomFieldType.php
deleted file mode 100644
index 9137977ef..000000000
--- a/src/Chill/CustomFieldsBundle/Form/CustomFieldType.php
+++ /dev/null
@@ -1,80 +0,0 @@
-customFieldProvider = $compiler;
- }
- /**
- * @param FormBuilderInterface $builder
- * @param array $options
- */
- public function buildForm(FormBuilderInterface $builder, array $options)
- {
-
- $customFieldsList = array();
-
- foreach ($this->customFieldProvider->getAllFields() as $key => $field) {
- $customFieldsList[$key] = $field->getName();
- }
-
- $builder
- ->add('name', 'text')
- ->add('active')
- ->add('customFieldsGroup', 'entity', array(
- 'class' => 'ChillCustomFieldsBundle:CustomFieldsGroup',
- 'property' => 'name['.$this->culture.']'
- ))
- ->add('ordering', 'number')
- ;
-
- //add options field
- $optionsType = $this->customFieldProvider
- ->getCustomFieldByType($options['type'])
- ->buildOptionsForm($builder);
- if ($optionsType) {
- $builder->add('options', $optionsType);
- }
- }
-
- /**
- * @param OptionsResolverInterface $resolver
- */
- public function setDefaultOptions(OptionsResolverInterface $resolver)
- {
- $resolver->setDefaults(array(
- 'data_class' => 'Chill\CustomFieldsBundle\Entity\CustomField'
- ));
-
- $resolver->setRequired(array('type'))
- ->addAllowedValues(array('type' =>
- array_keys($this->customFieldProvider->getAllFields())
- ));
- }
-
- /**
- * @return string
- */
- public function getName()
- {
- return 'custom_field_choice';
- }
-}
diff --git a/src/Chill/CustomFieldsBundle/Form/CustomFieldsGroupType.php b/src/Chill/CustomFieldsBundle/Form/CustomFieldsGroupType.php
deleted file mode 100644
index 1dd35a16e..000000000
--- a/src/Chill/CustomFieldsBundle/Form/CustomFieldsGroupType.php
+++ /dev/null
@@ -1,66 +0,0 @@
-customizableEntities = $customizableEntities;
- $this->translator = $translator;
- }
-
- /**
- * @param FormBuilderInterface $builder
- * @param array $options
- */
- public function buildForm(FormBuilderInterface $builder, array $options)
- {
- //prepare translation
- $customizableEntites = array();
-
- foreach($this->customizableEntities as $key => $definition) {
- $customizableEntites[$definition['class']] = $this->translator->trans($definition['name']);
- }
-
- $builder
- ->add('name')
- ->add('entity', 'choice', array(
- 'choices' => $customizableEntites
- ))
- ;
- }
-
- /**
- * @param OptionsResolverInterface $resolver
- */
- public function setDefaultOptions(OptionsResolverInterface $resolver)
- {
- $resolver->setDefaults(array(
- 'data_class' => 'Chill\CustomFieldsBundle\Entity\CustomFieldsGroup'
- ));
- }
-
- /**
- * @return string
- */
- public function getName()
- {
- return 'custom_fields_group';
- }
-}
diff --git a/src/Chill/CustomFieldsBundle/Form/DataTransformer/CustomFieldDataTransformer.php b/src/Chill/CustomFieldsBundle/Form/DataTransformer/CustomFieldDataTransformer.php
deleted file mode 100644
index f54c8b818..000000000
--- a/src/Chill/CustomFieldsBundle/Form/DataTransformer/CustomFieldDataTransformer.php
+++ /dev/null
@@ -1,43 +0,0 @@
-
- */
-class CustomFieldDataTransformer implements DataTransformerInterface
-{
- private $customFieldDefinition;
-
- /**
- *
- * @var \Chill\CustomFieldsBundle\Entity\CustomField
- */
- private $customField;
-
- public function __construct(CustomFieldInterface $customFieldDefinition,
- CustomField $customField)
- {
- $this->customFieldDefinition = $customFieldDefinition;
- $this->customField = $customField;
- }
-
- public function reverseTransform($value)
- {
- return $this->customFieldDefinition->serialize($value,
- $this->customField);
- }
-
- public function transform($value)
- {
- return $this->customFieldDefinition->deserialize($value,
- $this->customField);
- }
-
-}
diff --git a/src/Chill/CustomFieldsBundle/Form/DataTransformer/JsonCustomFieldToArrayTransformer.php b/src/Chill/CustomFieldsBundle/Form/DataTransformer/JsonCustomFieldToArrayTransformer.php
deleted file mode 100644
index b3865a310..000000000
--- a/src/Chill/CustomFieldsBundle/Form/DataTransformer/JsonCustomFieldToArrayTransformer.php
+++ /dev/null
@@ -1,145 +0,0 @@
-om = $om;
-
- $customFields = $this->om
- ->getRepository('ChillCustomFieldsBundle:CustomField')
- ->findAll();
-
- $customFieldsLablels = array_map(
- function($e) { return $e->getLabel(); },
- $customFields);
-
- $customFieldsByLabel = array_combine($customFieldsLablels, $customFields);
-
- $this->customField = $customFieldsByLabel;
- }
-
- public function transform($customFieldsJSON)
- {
- echo $customFieldsJSON;
-
- if($customFieldsJSON === null) { // lors de la creation
- $customFieldsArray = array();
- } else {
- $customFieldsArray = json_decode($customFieldsJSON,true);
- }
-
- /*
- echo "
- 4 -
";
-
- var_dump($customFieldsArray);
-
- echo "
- 5 -
";
- */
-
- $customFieldsArrayRet = array();
-
- foreach ($customFieldsArray as $key => $value) {
- $traited = false;
- if(array_key_exists($key, $this->customField)) {
- $type = $this->customField[$key]->getType();
- if(strpos($type,'ManyToOne') === 0) {
- if(strpos($type,'ManyToOnePersist') ===0) {
- $entityClass = substr($type, 17, -1);
- } else {
- $entityClass = substr($type, 10, -1);
- }
-
- $customFieldsArrayRet[$key] = $this->om
- ->getRepository('ChillCustomFieldsBundle:' . $entityClass)
- ->findOneById($value);
- $traited = true;
- } else if ($type === 'ManyToMany(Adress)') {
- $customFieldsArrayRet[$key] = $value;
- }
- }
-
- if(! $traited) {
- $customFieldsArrayRet[$key] = $value;
- }
- }
-
- var_dump($customFieldsArrayRet);
-
- return $customFieldsArrayRet;
- }
-
- public function reverseTransform($customFieldsArray)
- {
- /*
- echo "
- - 7 -
";
-
-
- var_dump(array_keys($customFieldsArray));
-
- echo "
- - 8 -
";
-
- var_dump(array_keys($this->customField));
-
- echo "
- - 9 -
";
- */
-
- //var_dump($customFieldsArray);
-
- $customFieldsArrayRet = array();
-
- foreach ($customFieldsArray as $key => $value) {
- $traited = false;
- if(array_key_exists($key, $this->customField)) {
- $type = $this->customField[$key]->getType();
- if(strpos($type,'ManyToOne') === 0) {
- // pour le manytoone() faire
- // un update du form en js ? : http://symfony.com/fr/doc/current/cookbook/form/form_collections.html
- //
- //$entityClass = substr($type, 10, -1);
- //echo $entityClasss;
- if(strpos($type, 'ManyToOnePersist') === 0) {
- // PEUT ETRE A FAIRE SI SEULEMENT $value->getId() ne renvoie rien...
- //
- //
- $this->om->persist($value); // pas bon ici
- // LE PERSIST NE SERT QUE LA PREMIERE FOIS
- // plutot le mettre dans une var temporaire de adress
- // et faire le persist qd fait sur l'obj parent
- // regarder : http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/events.html
- // ou : http://symfony.com/doc/current/cookbook/doctrine/event_listeners_subscribers.html
- // dans yml :
- // lifecycleCallbacks:
- // prePersist: [ doStuffOnPrePersist, doOtherStuffOnPrePersist ]
- $this->om->flush(); // sinon l'id pose pbm
- }
-
- $customFieldsArrayRet[$key] = $value->getId();
- $traited = true;
- }
- }
-
- if(! $traited) {
- $customFieldsArrayRet[$key] = $value;
- }
-
- }
-
- //echo json_encode($customFieldsArrayRet);
-
- return json_encode($customFieldsArrayRet);
- }
-}
\ No newline at end of file
diff --git a/src/Chill/CustomFieldsBundle/Form/Type/CustomFieldType.php b/src/Chill/CustomFieldsBundle/Form/Type/CustomFieldType.php
deleted file mode 100644
index 7f6262bd6..000000000
--- a/src/Chill/CustomFieldsBundle/Form/Type/CustomFieldType.php
+++ /dev/null
@@ -1,117 +0,0 @@
-
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Chill\CustomFieldsBundle\Form\Type;
-
-use Symfony\Component\Form\AbstractType;
-use Symfony\Component\Form\FormBuilderInterface;
-use Chill\CustomFieldsBundle\Form\DataTransformer\JsonCustomFieldToArrayTransformer;
-use Doctrine\Common\Persistence\ObjectManager;
-use Chill\CustomFieldsBundle\Form\AdressType;
-use Chill\CustomFieldsBundle\Service\CustomFieldProvider;
-use Chill\CustomFieldsBundle\Form\DataTransformer\CustomFieldDataTransformer;
-
-class CustomFieldType extends AbstractType
-{
-
- /**
- * @var ObjectManager
- */
- private $om;
-
- /**
- *
- * @var CustomFieldCompiler
- */
- private $customFieldCompiler;
-
- /**
- * @param ObjectManager $om
- */
- public function __construct(ObjectManager $om, CustomFieldProvider $compiler)
- {
- $this->om = $om;
- $this->customFieldCompiler = $compiler;
- }
-
- public function buildForm(FormBuilderInterface $builder, array $options)
- {
- $customFields = $this->om
- ->getRepository('ChillCustomFieldsBundle:CustomField')
- ->findAll();
-
- foreach ($customFields as $cf) {
-
- //$builder->add(
- //$builder->create(
- //$cf->getSlug(),
- $this->customFieldCompiler
- ->getCustomFieldByType($cf->getType())
- ->buildForm($builder, $cf);
- /* )
- ->addModelTransformer(new CustomFieldDataTransformer(
- $this->customFieldCompiler
- ->getCustomFieldByType($cf->getType()),
- $cf)
- )*/
- //);
-
-// if($cf->getType() === 'ManyToOne(Adress)') {
-// $builder->add($cf->getLabel(), 'entity', array(
-// 'class' => 'ChillCustomFieldsBundle:Adress',
-// 'property' => 'data'
-// ));
-// } else if ($cf->getType() === 'ManyToOnePersist(Adress)') {
-// $builder->add($cf->getLabel(), new AdressType());
-// } else if($cf->getType() === 'ManyToMany(Adress)') {
-//
-// $adress = $this->om
-// ->getRepository('ChillCustomFieldsBundle:Adress')
-// ->findAll();
-//
-// $adressId = array_map(
-// function($e) { return $e->getId(); },
-// $adress);
-//
-// $adressLabel = array_map(
-// function($e) { return (string) $e; },
-// $adress);
-//
-// $addressChoices = array_combine($adressId, $adressLabel);
-//
-//
-// $builder->add($cf->getLabel(), 'choice', array(
-// 'choices' => $addressChoices,
-// 'multiple' => true
-// ));
-// }
-// else {
-// $builder->add($cf->getLabel(), $cf->getType());
-// }
- }
-
- //$builder->addViewTransformer(new JsonCustomFieldToArrayTransformer($this->om));
- }
-
- public function setDefaultOptions(\Symfony\Component\OptionsResolver\OptionsResolverInterface $resolver)
- {
- $resolver
- //->addAllowedTypes(array('context' => 'string'))
- //->setRequired(array('context'))
- ;
- }
-
- public function getName()
- {
- return 'custom_field';
- }
-
-}
\ No newline at end of file
diff --git a/src/Chill/CustomFieldsBundle/Resources/config/doctrine/Adress.orm.yml b/src/Chill/CustomFieldsBundle/Resources/config/doctrine/Adress.orm.yml
deleted file mode 100644
index ff23bdc27..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/config/doctrine/Adress.orm.yml
+++ /dev/null
@@ -1,14 +0,0 @@
-Chill\CustomFieldsBundle\Entity\Adress:
- type: entity
- table: null
- id:
- id:
- type: integer
- id: true
- generator:
- strategy: AUTO
- fields:
- data:
- type: string
- length: 255
- lifecycleCallbacks: { }
diff --git a/src/Chill/CustomFieldsBundle/Resources/config/doctrine/BlopEntity.orm.yml b/src/Chill/CustomFieldsBundle/Resources/config/doctrine/BlopEntity.orm.yml
deleted file mode 100644
index e2a24f962..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/config/doctrine/BlopEntity.orm.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-Chill\CustomFieldsBundle\Entity\BlopEntity:
- type: entity
- table: blop_entity
- id:
- id:
- type: integer
- id: true
- generator:
- strategy: AUTO
- fields:
- field1:
- type: string
- length: 255
- field2:
- type: string
- length: 255
- customField:
- type: json_array
- manyToOne:
- adress:
- targetEntity: Chill\CustomFieldsBundle\Entity\Adress
- cascade: [persist]
- lifecycleCallbacks: { }
diff --git a/src/Chill/CustomFieldsBundle/Resources/config/doctrine/BlopEntity2.orm.yml b/src/Chill/CustomFieldsBundle/Resources/config/doctrine/BlopEntity2.orm.yml
deleted file mode 100644
index f05897041..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/config/doctrine/BlopEntity2.orm.yml
+++ /dev/null
@@ -1,16 +0,0 @@
-Chill\CustomFieldsBundle\Entity\BlopEntity2:
- type: entity
- table: null
- id:
- id:
- type: integer
- id: true
- generator:
- strategy: AUTO
- fields:
- customFieldData:
- type: json_array
- lifecycleCallbacks:
- postLoad: [ loadCustomFieldConfig, unfoldCustomFieldData ]
- preFlush: [ preFlush ]
- prePersist: [ prePersist ]
\ No newline at end of file
diff --git a/src/Chill/CustomFieldsBundle/Resources/config/doctrine/CustomField.orm.yml b/src/Chill/CustomFieldsBundle/Resources/config/doctrine/CustomField.orm.yml
deleted file mode 100644
index 595e96db5..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/config/doctrine/CustomField.orm.yml
+++ /dev/null
@@ -1,30 +0,0 @@
-Chill\CustomFieldsBundle\Entity\CustomField:
- type: entity
- table: null
- id:
- id:
- type: integer
- id: true
- generator:
- strategy: AUTO
- fields:
- name:
- type: json_array
- slug:
- type: string
- length: 255
- type:
- type: string
- length: 255
- active:
- type: boolean
- ordering:
- type: float
- options:
- type: json_array
- lifecycleCallbacks: { }
- manyToOne:
- customFieldGroup:
- targetEntity: Chill\CustomFieldsBundle\Entity\CustomFieldsGroup
- inversedBy: customFields
-#TODO: add an unique constraint slug+customFieldsGroup
\ No newline at end of file
diff --git a/src/Chill/CustomFieldsBundle/Resources/config/doctrine/CustomFieldsGroup.orm.yml b/src/Chill/CustomFieldsBundle/Resources/config/doctrine/CustomFieldsGroup.orm.yml
deleted file mode 100644
index e6f47e614..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/config/doctrine/CustomFieldsGroup.orm.yml
+++ /dev/null
@@ -1,19 +0,0 @@
-Chill\CustomFieldsBundle\Entity\CustomFieldsGroup:
- type: entity
- table: null
- id:
- id:
- type: integer
- id: true
- generator:
- strategy: AUTO
- fields:
- name:
- type: json_array
- entity:
- type: string
- length: 255
- oneToMany:
- customFields:
- targetEntity: Chill\CustomFieldsBundle\Entity\CustomField
- mappedBy: customFieldGroup
\ No newline at end of file
diff --git a/src/Chill/CustomFieldsBundle/Resources/config/routing.yml b/src/Chill/CustomFieldsBundle/Resources/config/routing.yml
deleted file mode 100644
index b12886590..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/config/routing.yml
+++ /dev/null
@@ -1,20 +0,0 @@
-cl_custom_fields_customfieldsgroup:
- resource: "@ChillCustomFieldsBundle/Resources/config/routing/customfieldsgroup.yml"
- prefix: /customfieldsgroup
-
-cl_custom_fields_blopentity2:
- resource: "@ChillCustomFieldsBundle/Resources/config/routing/blopentity2.yml"
- prefix: /blopentity2
-
-cl_custom_fields_adress:
- resource: "@ChillCustomFieldsBundle/Resources/config/routing/adress.yml"
- prefix: /adress
-
-cl_custom_fields_customfield:
- resource: "@ChillCustomFieldsBundle/Resources/config/routing/customfield.yml"
- prefix: /customfield
-
-cl_custom_fields_blopentity:
- resource: "@ChillCustomFieldsBundle/Resources/config/routing/blopentity.yml"
- prefix: /
-
diff --git a/src/Chill/CustomFieldsBundle/Resources/config/routing/adress.yml b/src/Chill/CustomFieldsBundle/Resources/config/routing/adress.yml
deleted file mode 100644
index 667f87b6c..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/config/routing/adress.yml
+++ /dev/null
@@ -1,30 +0,0 @@
-adress:
- path: /
- defaults: { _controller: "ChillCustomFieldsBundle:Adress:index" }
-
-adress_show:
- path: /{id}/show
- defaults: { _controller: "ChillCustomFieldsBundle:Adress:show" }
-
-adress_new:
- path: /new
- defaults: { _controller: "ChillCustomFieldsBundle:Adress:new" }
-
-adress_create:
- path: /create
- defaults: { _controller: "ChillCustomFieldsBundle:Adress:create" }
- requirements: { _method: post }
-
-adress_edit:
- path: /{id}/edit
- defaults: { _controller: "ChillCustomFieldsBundle:Adress:edit" }
-
-adress_update:
- path: /{id}/update
- defaults: { _controller: "ChillCustomFieldsBundle:Adress:update" }
- requirements: { _method: post|put }
-
-adress_delete:
- path: /{id}/delete
- defaults: { _controller: "ChillCustomFieldsBundle:Adress:delete" }
- requirements: { _method: post|delete }
diff --git a/src/Chill/CustomFieldsBundle/Resources/config/routing/blopentity.yml b/src/Chill/CustomFieldsBundle/Resources/config/routing/blopentity.yml
deleted file mode 100644
index 78ff9b0f8..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/config/routing/blopentity.yml
+++ /dev/null
@@ -1,42 +0,0 @@
-blopentity:
- path: /
- defaults: { _controller: "ChillCustomFieldsBundle:BlopEntity:index" }
-
-blopentity_show:
- path: /{id}/show
- defaults: { _controller: "ChillCustomFieldsBundle:BlopEntity:show" }
-
-blopentity_new:
- path: /new
- defaults: { _controller: "ChillCustomFieldsBundle:BlopEntity:new" }
-
-blopentity_create:
- path: /create
- defaults: { _controller: "ChillCustomFieldsBundle:BlopEntity:create" }
- requirements: { _method: post }
-
-blopentity_edit:
- path: /{id}/edit
- defaults: { _controller: "ChillCustomFieldsBundle:BlopEntity:edit" }
-
-blopentity_update:
- path: /{id}/update
- defaults: { _controller: "ChillCustomFieldsBundle:BlopEntity:update" }
- requirements: { _method: post|put }
-
-blopentity_delete:
- path: /{id}/delete
- defaults: { _controller: "ChillCustomFieldsBundle:BlopEntity:delete" }
- requirements: { _method: post|delete }
-
-blopentity_cfget:
- path: /{id}/cfget/{key}
- defaults: { _controller: "ChillCustomFieldsBundle:BlopEntity:cfGet" }
-
-blopentity_cfset:
- path: /{id}/cfset/{key}/{value}
- defaults: { _controller: "ChillCustomFieldsBundle:BlopEntity:cfSet" }
-
-blopentity_addmany_to_one:
- path: /{id}/add/custom/field/{key}
- defaults: {_controller: "ChillCustomFieldsBundle:BlopEntity:addNewManyToOne"}
\ No newline at end of file
diff --git a/src/Chill/CustomFieldsBundle/Resources/config/routing/blopentity2.yml b/src/Chill/CustomFieldsBundle/Resources/config/routing/blopentity2.yml
deleted file mode 100644
index 9ca2c0de2..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/config/routing/blopentity2.yml
+++ /dev/null
@@ -1,30 +0,0 @@
-blopentity2:
- path: /
- defaults: { _controller: "ChillCustomFieldsBundle:BlopEntity2:index" }
-
-blopentity2_show:
- path: /{id}/show
- defaults: { _controller: "ChillCustomFieldsBundle:BlopEntity2:show" }
-
-blopentity2_new:
- path: /new
- defaults: { _controller: "ChillCustomFieldsBundle:BlopEntity2:new" }
-
-blopentity2_create:
- path: /create
- defaults: { _controller: "ChillCustomFieldsBundle:BlopEntity2:create" }
- requirements: { _method: post }
-
-blopentity2_edit:
- path: /{id}/edit
- defaults: { _controller: "ChillCustomFieldsBundle:BlopEntity2:edit" }
-
-blopentity2_update:
- path: /{id}/update
- defaults: { _controller: "ChillCustomFieldsBundle:BlopEntity2:update" }
- requirements: { _method: post|put }
-
-blopentity2_delete:
- path: /{id}/delete
- defaults: { _controller: "ChillCustomFieldsBundle:BlopEntity2:delete" }
- requirements: { _method: post|delete }
diff --git a/src/Chill/CustomFieldsBundle/Resources/config/routing/customfield.yml b/src/Chill/CustomFieldsBundle/Resources/config/routing/customfield.yml
deleted file mode 100644
index 171b38c6b..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/config/routing/customfield.yml
+++ /dev/null
@@ -1,30 +0,0 @@
-customfield:
- path: /
- defaults: { _controller: "ChillCustomFieldsBundle:CustomField:index" }
-
-customfield_show:
- path: /{id}/show
- defaults: { _controller: "ChillCustomFieldsBundle:CustomField:show" }
-
-customfield_new:
- path: /new
- defaults: { _controller: "ChillCustomFieldsBundle:CustomField:new" }
-
-customfield_create:
- path: /create
- defaults: { _controller: "ChillCustomFieldsBundle:CustomField:create" }
- requirements: { _method: post }
-
-customfield_edit:
- path: /{id}/edit
- defaults: { _controller: "ChillCustomFieldsBundle:CustomField:edit" }
-
-customfield_update:
- path: /{id}/update
- defaults: { _controller: "ChillCustomFieldsBundle:CustomField:update" }
- requirements: { _method: post|put }
-
-customfield_delete:
- path: /{id}/delete
- defaults: { _controller: "ChillCustomFieldsBundle:CustomField:delete" }
- requirements: { _method: post|delete }
diff --git a/src/Chill/CustomFieldsBundle/Resources/config/routing/customfieldsgroup.yml b/src/Chill/CustomFieldsBundle/Resources/config/routing/customfieldsgroup.yml
deleted file mode 100644
index 6d12e2e53..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/config/routing/customfieldsgroup.yml
+++ /dev/null
@@ -1,30 +0,0 @@
-customfieldsgroup:
- path: /
- defaults: { _controller: "ChillCustomFieldsBundle:CustomFieldsGroup:index" }
-
-customfieldsgroup_show:
- path: /{id}/show
- defaults: { _controller: "ChillCustomFieldsBundle:CustomFieldsGroup:show" }
-
-customfieldsgroup_new:
- path: /new
- defaults: { _controller: "ChillCustomFieldsBundle:CustomFieldsGroup:new" }
-
-customfieldsgroup_create:
- path: /create
- defaults: { _controller: "ChillCustomFieldsBundle:CustomFieldsGroup:create" }
- requirements: { _method: post }
-
-customfieldsgroup_edit:
- path: /{id}/edit
- defaults: { _controller: "ChillCustomFieldsBundle:CustomFieldsGroup:edit" }
-
-customfieldsgroup_update:
- path: /{id}/update
- defaults: { _controller: "ChillCustomFieldsBundle:CustomFieldsGroup:update" }
- requirements: { _method: post|put }
-
-customfieldsgroup_delete:
- path: /{id}/delete
- defaults: { _controller: "ChillCustomFieldsBundle:CustomFieldsGroup:delete" }
- requirements: { _method: post|delete }
diff --git a/src/Chill/CustomFieldsBundle/Resources/config/services.yml b/src/Chill/CustomFieldsBundle/Resources/config/services.yml
deleted file mode 100644
index 78ecea642..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/config/services.yml
+++ /dev/null
@@ -1,44 +0,0 @@
-parameters:
-# cl_custom_fields.example.class: Chill\CustomFieldsBundle\Example
-
-services:
- chill.custom_field_compiler:
- class: Chill\CustomFieldsBundle\Service\CustomFieldProvider
- call:
- - [setContainer, ["@service_container"]]
-
- chill.custom_field.custom_field_choice_type:
- class: Chill\CustomFieldsBundle\Form\CustomFieldType
- arguments:
- - "@chill.custom_field_compiler"
-
- tags:
- - { name: 'form.type', alias: 'custom_field_choice' }
-
- chill.custom_field.custom_fields_group_type:
- class: Chill\CustomFieldsBundle\Form\CustomFieldsGroupType
- arguments:
- - %chill_custom_fields.customizables_entities%
- - "@translator"
- tags:
- - { name: 'form.type', alias: 'custom_fields_group' }
-
- chill.custom_field.custom_field_type:
- class: Chill\CustomFieldsBundle\Form\Type\CustomFieldType
- arguments:
- - "@doctrine.orm.entity_manager"
- - "@chill.custom_field_compiler"
- tags:
- - { name: 'form.type', alias: 'custom_field' }
-
- chill.custom_field.text:
- class: Chill\CustomFieldsBundle\CustomFields\CustomFieldText
- tags:
- - { name: 'chill.custom_field', type: 'text' }
-
- chill.custom_field.address:
- class: Chill\CustomFieldsBundle\CustomFields\CustomFieldAddress
- arguments:
- - "@doctrine.orm.entity_manager"
- tags:
- - { name: 'chill.custom_field', type: 'address' }
diff --git a/src/Chill/CustomFieldsBundle/Resources/views/Adress/edit.html.twig b/src/Chill/CustomFieldsBundle/Resources/views/Adress/edit.html.twig
deleted file mode 100644
index 16495743b..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/views/Adress/edit.html.twig
+++ /dev/null
@@ -1,16 +0,0 @@
-{% extends '::base.html.twig' %}
-
-{% block body -%}
-
Adress edit
-
- {{ form(edit_form) }}
-
-
-{% endblock %}
diff --git a/src/Chill/CustomFieldsBundle/Resources/views/Adress/index.html.twig b/src/Chill/CustomFieldsBundle/Resources/views/Adress/index.html.twig
deleted file mode 100644
index d6ac07551..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/views/Adress/index.html.twig
+++ /dev/null
@@ -1,41 +0,0 @@
-{% extends '::base.html.twig' %}
-
-{% block body -%}
- Adress list
-
-
-
-
- Id |
- Data |
- Actions |
-
-
-
- {% for entity in entities %}
-
- {{ entity.id }} |
- {{ entity.data }} |
-
-
- |
-
- {% endfor %}
-
-
-
-
- {% endblock %}
diff --git a/src/Chill/CustomFieldsBundle/Resources/views/Adress/new.html.twig b/src/Chill/CustomFieldsBundle/Resources/views/Adress/new.html.twig
deleted file mode 100644
index abe70e67a..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/views/Adress/new.html.twig
+++ /dev/null
@@ -1,15 +0,0 @@
-{% extends '::base.html.twig' %}
-
-{% block body -%}
- Adress creation
-
- {{ form(form) }}
-
-
-{% endblock %}
diff --git a/src/Chill/CustomFieldsBundle/Resources/views/Adress/show.html.twig b/src/Chill/CustomFieldsBundle/Resources/views/Adress/show.html.twig
deleted file mode 100644
index fe5f79907..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/views/Adress/show.html.twig
+++ /dev/null
@@ -1,32 +0,0 @@
-{% extends '::base.html.twig' %}
-
-{% block body -%}
- Adress
-
-
-
-
- Id |
- {{ entity.id }} |
-
-
- Data |
- {{ entity.data }} |
-
-
-
-
-
-{% endblock %}
diff --git a/src/Chill/CustomFieldsBundle/Resources/views/BlopEntity/edit.html.twig b/src/Chill/CustomFieldsBundle/Resources/views/BlopEntity/edit.html.twig
deleted file mode 100644
index 6ce9b1cb5..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/views/BlopEntity/edit.html.twig
+++ /dev/null
@@ -1,22 +0,0 @@
-{% extends '::base.html.twig' %}
-
-{% block body -%}
- BlopEntity edit
-
- {{ form_start(edit_form) }}
-
- {{ form_row(edit_form.customField) }}
-
- {{ form_rest(edit_form) }}
-
- {{ form_end(edit_form) }}
-
-
-{% endblock %}
diff --git a/src/Chill/CustomFieldsBundle/Resources/views/BlopEntity/index.html.twig b/src/Chill/CustomFieldsBundle/Resources/views/BlopEntity/index.html.twig
deleted file mode 100644
index 2f80f71a5..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/views/BlopEntity/index.html.twig
+++ /dev/null
@@ -1,45 +0,0 @@
-{% extends '::base.html.twig' %}
-
-{% block body -%}
- BlopEntity list
-
-
-
-
- Id |
- Field1 |
- Field2 |
- Customfield |
- Actions |
-
-
-
- {% for entity in entities %}
-
- {{ entity.id }} |
- {{ entity.field1 }} |
- {{ entity.field2 }} |
- {{ dump(entity.customField) }} |
-
-
- |
-
- {% endfor %}
-
-
-
-
- {% endblock %}
diff --git a/src/Chill/CustomFieldsBundle/Resources/views/BlopEntity/new.html.twig b/src/Chill/CustomFieldsBundle/Resources/views/BlopEntity/new.html.twig
deleted file mode 100644
index 9d9d15292..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/views/BlopEntity/new.html.twig
+++ /dev/null
@@ -1,15 +0,0 @@
-{% extends '::base.html.twig' %}
-
-{% block body -%}
- BlopEntity creation
-
- {{ form(form) }}
-
-
-{% endblock %}
diff --git a/src/Chill/CustomFieldsBundle/Resources/views/BlopEntity/show.html.twig b/src/Chill/CustomFieldsBundle/Resources/views/BlopEntity/show.html.twig
deleted file mode 100644
index da44cbc20..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/views/BlopEntity/show.html.twig
+++ /dev/null
@@ -1,40 +0,0 @@
-{% extends '::base.html.twig' %}
-
-{% block body -%}
- BlopEntity
-
-
-
-
- Id |
- {{ entity.id }} |
-
-
- Field1 |
- {{ entity.field1 }} |
-
-
- Field2 |
- {{ entity.field2 }} |
-
-
- Customfield |
- {{ dump(entity.customField) }} |
-
-
-
-
-
-{% endblock %}
diff --git a/src/Chill/CustomFieldsBundle/Resources/views/BlopEntity2/edit.html.twig b/src/Chill/CustomFieldsBundle/Resources/views/BlopEntity2/edit.html.twig
deleted file mode 100644
index c60322926..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/views/BlopEntity2/edit.html.twig
+++ /dev/null
@@ -1,16 +0,0 @@
-{% extends '::base.html.twig' %}
-
-{% block body -%}
- BlopEntity2 edit
-
- {{ form(edit_form) }}
-
-
-{% endblock %}
diff --git a/src/Chill/CustomFieldsBundle/Resources/views/BlopEntity2/index.html.twig b/src/Chill/CustomFieldsBundle/Resources/views/BlopEntity2/index.html.twig
deleted file mode 100644
index 61c1175e4..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/views/BlopEntity2/index.html.twig
+++ /dev/null
@@ -1,41 +0,0 @@
-{% extends '::base.html.twig' %}
-
-{% block body -%}
- BlopEntity2 list
-
-
-
-
- Id |
- CustomfieldData |
- Actions |
-
-
-
- {% for entity in entities %}
-
- {{ entity.id }} |
- {{ entity.CustomfieldData }} |
-
-
- |
-
- {% endfor %}
-
-
-
-
- {% endblock %}
diff --git a/src/Chill/CustomFieldsBundle/Resources/views/BlopEntity2/new.html.twig b/src/Chill/CustomFieldsBundle/Resources/views/BlopEntity2/new.html.twig
deleted file mode 100644
index df1fbf230..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/views/BlopEntity2/new.html.twig
+++ /dev/null
@@ -1,15 +0,0 @@
-{% extends '::base.html.twig' %}
-
-{% block body -%}
- BlopEntity2 creation
-
- {{ form(form) }}
-
-
-{% endblock %}
diff --git a/src/Chill/CustomFieldsBundle/Resources/views/BlopEntity2/show.html.twig b/src/Chill/CustomFieldsBundle/Resources/views/BlopEntity2/show.html.twig
deleted file mode 100644
index 4f298bef9..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/views/BlopEntity2/show.html.twig
+++ /dev/null
@@ -1,32 +0,0 @@
-{% extends '::base.html.twig' %}
-
-{% block body -%}
- BlopEntity2
-
-
-
-
- Id |
- {{ entity.id }} |
-
-
- CustomfieldData |
- {{ entity.customFieldData }} |
-
-
-
-
-
-{% endblock %}
diff --git a/src/Chill/CustomFieldsBundle/Resources/views/CustomField/edit.html.twig b/src/Chill/CustomFieldsBundle/Resources/views/CustomField/edit.html.twig
deleted file mode 100644
index bfbe14f58..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/views/CustomField/edit.html.twig
+++ /dev/null
@@ -1,16 +0,0 @@
-{% extends '::base.html.twig' %}
-
-{% block body -%}
- CustomField edit
-
- {{ form(edit_form) }}
-
-
-{% endblock %}
diff --git a/src/Chill/CustomFieldsBundle/Resources/views/CustomField/form.html.twig b/src/Chill/CustomFieldsBundle/Resources/views/CustomField/form.html.twig
deleted file mode 100644
index efa52428d..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/views/CustomField/form.html.twig
+++ /dev/null
@@ -1,5 +0,0 @@
-{% extends '::base.html.twig' %}
-
-{% block body -%}
- {{ form(form) }}
-{% endblock %}
diff --git a/src/Chill/CustomFieldsBundle/Resources/views/CustomField/index.html.twig b/src/Chill/CustomFieldsBundle/Resources/views/CustomField/index.html.twig
deleted file mode 100644
index 69c3e5351..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/views/CustomField/index.html.twig
+++ /dev/null
@@ -1,50 +0,0 @@
-{% extends '::base.html.twig' %}
-
-{% block body -%}
- CustomField list
-
-
-
-
- Id |
- Label |
- Type |
- Active |
- Actions |
-
-
-
- {% for entity in entities %}
-
- {{ entity.id }} |
- {{ entity.label }} |
- {{ entity.type }} |
- {{ entity.active }} |
-
-
- |
-
- {% endfor %}
-
-
-
-
- -
- {{ form_start(form) }}
-
- {{ form_row(form) }}
-
-
- {{ form_end(form) }}
-
-
- {% endblock %}
diff --git a/src/Chill/CustomFieldsBundle/Resources/views/CustomField/new.html.twig b/src/Chill/CustomFieldsBundle/Resources/views/CustomField/new.html.twig
deleted file mode 100644
index 2661a94cd..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/views/CustomField/new.html.twig
+++ /dev/null
@@ -1,15 +0,0 @@
-{% extends '::base.html.twig' %}
-
-{% block body -%}
- CustomField creation
-
- {{ form(form) }}
-
-
-{% endblock %}
diff --git a/src/Chill/CustomFieldsBundle/Resources/views/CustomField/show.html.twig b/src/Chill/CustomFieldsBundle/Resources/views/CustomField/show.html.twig
deleted file mode 100644
index b1cea0b3d..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/views/CustomField/show.html.twig
+++ /dev/null
@@ -1,40 +0,0 @@
-{% extends '::base.html.twig' %}
-
-{% block body -%}
- CustomField
-
-
-
-
- Id |
- {{ entity.id }} |
-
-
- Label |
- {{ entity.label }} |
-
-
- Type |
- {{ entity.type }} |
-
-
- Active |
- {{ entity.active }} |
-
-
-
-
-
-{% endblock %}
diff --git a/src/Chill/CustomFieldsBundle/Resources/views/CustomFieldsGroup/edit.html.twig b/src/Chill/CustomFieldsBundle/Resources/views/CustomFieldsGroup/edit.html.twig
deleted file mode 100644
index 9c4b082f7..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/views/CustomFieldsGroup/edit.html.twig
+++ /dev/null
@@ -1,16 +0,0 @@
-{% extends '::base.html.twig' %}
-
-{% block body -%}
- CustomFieldsGroup edit
-
- {{ form(edit_form) }}
-
-
-{% endblock %}
diff --git a/src/Chill/CustomFieldsBundle/Resources/views/CustomFieldsGroup/index.html.twig b/src/Chill/CustomFieldsBundle/Resources/views/CustomFieldsGroup/index.html.twig
deleted file mode 100644
index 46d105c01..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/views/CustomFieldsGroup/index.html.twig
+++ /dev/null
@@ -1,43 +0,0 @@
-{% extends '::base.html.twig' %}
-
-{% block body -%}
- CustomFieldsGroup list
-
-
-
-
- Id |
- Name |
- Entity |
- Actions |
-
-
-
- {% for entity in entities %}
-
- {{ entity.id }} |
- {{ entity.name['fr'] }} |
- {{ entity.entity }} |
-
-
- |
-
- {% endfor %}
-
-
-
-
- {% endblock %}
diff --git a/src/Chill/CustomFieldsBundle/Resources/views/CustomFieldsGroup/new.html.twig b/src/Chill/CustomFieldsBundle/Resources/views/CustomFieldsGroup/new.html.twig
deleted file mode 100644
index eaa7b47d8..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/views/CustomFieldsGroup/new.html.twig
+++ /dev/null
@@ -1,15 +0,0 @@
-{% extends '::base.html.twig' %}
-
-{% block body -%}
- CustomFieldsGroup creation
-
- {{ form(form) }}
-
-
-{% endblock %}
diff --git a/src/Chill/CustomFieldsBundle/Resources/views/CustomFieldsGroup/show.html.twig b/src/Chill/CustomFieldsBundle/Resources/views/CustomFieldsGroup/show.html.twig
deleted file mode 100644
index 489fc6590..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/views/CustomFieldsGroup/show.html.twig
+++ /dev/null
@@ -1,36 +0,0 @@
-{% extends '::base.html.twig' %}
-
-{% block body -%}
- CustomFieldsGroup
-
-
-
-
- Id |
- {{ entity.id }} |
-
-
- Name |
- {{ entity.name }} |
-
-
- Entity |
- {{ entity.entity }} |
-
-
-
-
-
-{% endblock %}
diff --git a/src/Chill/CustomFieldsBundle/Resources/views/Default/index.html.twig b/src/Chill/CustomFieldsBundle/Resources/views/Default/index.html.twig
deleted file mode 100644
index 4ce626e9b..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/views/Default/index.html.twig
+++ /dev/null
@@ -1 +0,0 @@
-Hello {{ name }}!
diff --git a/src/Chill/CustomFieldsBundle/Resources/views/Entity/edit.html.twig b/src/Chill/CustomFieldsBundle/Resources/views/Entity/edit.html.twig
deleted file mode 100644
index 0376acef2..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/views/Entity/edit.html.twig
+++ /dev/null
@@ -1,16 +0,0 @@
-{% extends '::base.html.twig' %}
-
-{% block body -%}
- Entity edit
-
- {{ form(edit_form) }}
-
-
-{% endblock %}
diff --git a/src/Chill/CustomFieldsBundle/Resources/views/Entity/index.html.twig b/src/Chill/CustomFieldsBundle/Resources/views/Entity/index.html.twig
deleted file mode 100644
index 9c9c55093..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/views/Entity/index.html.twig
+++ /dev/null
@@ -1,45 +0,0 @@
-{% extends '::base.html.twig' %}
-
-{% block body -%}
- Entity list
-
-
-
-
- Id |
- Field1 |
- Field2 |
- Customfields |
- Actions |
-
-
-
- {% for entity in entities %}
-
- {{ entity.id }} |
- {{ entity.field1 }} |
- {{ entity.field2 }} |
- {{ entity.customFields }} |
-
-
- |
-
- {% endfor %}
-
-
-
-
- {% endblock %}
diff --git a/src/Chill/CustomFieldsBundle/Resources/views/Entity/new.html.twig b/src/Chill/CustomFieldsBundle/Resources/views/Entity/new.html.twig
deleted file mode 100644
index cee1c0b8e..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/views/Entity/new.html.twig
+++ /dev/null
@@ -1,15 +0,0 @@
-{% extends '::base.html.twig' %}
-
-{% block body -%}
- Entity creation
-
- {{ form(form) }}
-
-
-{% endblock %}
diff --git a/src/Chill/CustomFieldsBundle/Resources/views/Entity/show.html.twig b/src/Chill/CustomFieldsBundle/Resources/views/Entity/show.html.twig
deleted file mode 100644
index 3ed82f14a..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/views/Entity/show.html.twig
+++ /dev/null
@@ -1,40 +0,0 @@
-{% extends '::base.html.twig' %}
-
-{% block body -%}
- Entity
-
-
-
-
- Id |
- {{ entity.id }} |
-
-
- Field1 |
- {{ entity.field1 }} |
-
-
- Field2 |
- {{ entity.field2 }} |
-
-
- Customfields |
- {{ entity.customFields }} |
-
-
-
-
-
-{% endblock %}
diff --git a/src/Chill/CustomFieldsBundle/Resources/views/TestEntity/edit.html.twig b/src/Chill/CustomFieldsBundle/Resources/views/TestEntity/edit.html.twig
deleted file mode 100644
index 2cac0777d..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/views/TestEntity/edit.html.twig
+++ /dev/null
@@ -1,16 +0,0 @@
-{% extends '::base.html.twig' %}
-
-{% block body -%}
- TestEntity edit
-
- {{ form(edit_form) }}
-
-
-{% endblock %}
diff --git a/src/Chill/CustomFieldsBundle/Resources/views/TestEntity/index.html.twig b/src/Chill/CustomFieldsBundle/Resources/views/TestEntity/index.html.twig
deleted file mode 100644
index d5f7e5359..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/views/TestEntity/index.html.twig
+++ /dev/null
@@ -1,45 +0,0 @@
-{% extends '::base.html.twig' %}
-
-{% block body -%}
- TestEntity list
-
-
-
-
- Id |
- Field1 |
- Field2 |
- Customfields |
- Actions |
-
-
-
- {% for entity in entities %}
-
- {{ entity.id }} |
- {{ entity.field1 }} |
- {{ entity.field2 }} |
- {{ entity.customFields }} |
-
-
- |
-
- {% endfor %}
-
-
-
-
- {% endblock %}
diff --git a/src/Chill/CustomFieldsBundle/Resources/views/TestEntity/new.html.twig b/src/Chill/CustomFieldsBundle/Resources/views/TestEntity/new.html.twig
deleted file mode 100644
index d17621c81..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/views/TestEntity/new.html.twig
+++ /dev/null
@@ -1,15 +0,0 @@
-{% extends '::base.html.twig' %}
-
-{% block body -%}
- TestEntity creation
-
- {{ form(form) }}
-
-
-{% endblock %}
diff --git a/src/Chill/CustomFieldsBundle/Resources/views/TestEntity/show.html.twig b/src/Chill/CustomFieldsBundle/Resources/views/TestEntity/show.html.twig
deleted file mode 100644
index d03ebfb22..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/views/TestEntity/show.html.twig
+++ /dev/null
@@ -1,40 +0,0 @@
-{% extends '::base.html.twig' %}
-
-{% block body -%}
- TestEntity
-
-
-
-
- Id |
- {{ entity.id }} |
-
-
- Field1 |
- {{ entity.field1 }} |
-
-
- Field2 |
- {{ entity.field2 }} |
-
-
- Customfields |
- {{ entity.customFields }} |
-
-
-
-
-
-{% endblock %}
diff --git a/src/Chill/CustomFieldsBundle/Resources/views/TestExtraColumn/edit.html.twig b/src/Chill/CustomFieldsBundle/Resources/views/TestExtraColumn/edit.html.twig
deleted file mode 100644
index 144c0e5a9..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/views/TestExtraColumn/edit.html.twig
+++ /dev/null
@@ -1,16 +0,0 @@
-{% extends '::base.html.twig' %}
-
-{% block body -%}
- TestExtraColumn edit
-
- {{ form(edit_form) }}
-
-
-{% endblock %}
diff --git a/src/Chill/CustomFieldsBundle/Resources/views/TestExtraColumn/index.html.twig b/src/Chill/CustomFieldsBundle/Resources/views/TestExtraColumn/index.html.twig
deleted file mode 100644
index 97c61931e..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/views/TestExtraColumn/index.html.twig
+++ /dev/null
@@ -1,41 +0,0 @@
-{% extends '::base.html.twig' %}
-
-{% block body -%}
- TestExtraColumn list
-
-
-
-
- Id |
- Name |
- Actions |
-
-
-
- {% for entity in entities %}
-
- {{ entity.id }} |
- {{ entity.name }} |
-
-
- |
-
- {% endfor %}
-
-
-
-
- {% endblock %}
diff --git a/src/Chill/CustomFieldsBundle/Resources/views/TestExtraColumn/new.html.twig b/src/Chill/CustomFieldsBundle/Resources/views/TestExtraColumn/new.html.twig
deleted file mode 100644
index 3d79e65e3..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/views/TestExtraColumn/new.html.twig
+++ /dev/null
@@ -1,15 +0,0 @@
-{% extends '::base.html.twig' %}
-
-{% block body -%}
- TestExtraColumn creation
-
- {{ form(form) }}
-
-
-{% endblock %}
diff --git a/src/Chill/CustomFieldsBundle/Resources/views/TestExtraColumn/show.html.twig b/src/Chill/CustomFieldsBundle/Resources/views/TestExtraColumn/show.html.twig
deleted file mode 100644
index 1e1c570a4..000000000
--- a/src/Chill/CustomFieldsBundle/Resources/views/TestExtraColumn/show.html.twig
+++ /dev/null
@@ -1,32 +0,0 @@
-{% extends '::base.html.twig' %}
-
-{% block body -%}
- TestExtraColumn
-
-
-
-
- Id |
- {{ entity.id }} |
-
-
- Name |
- {{ entity.name }} |
-
-
-
-
-
-{% endblock %}
diff --git a/src/Chill/CustomFieldsBundle/Service/CustomFieldProvider.php b/src/Chill/CustomFieldsBundle/Service/CustomFieldProvider.php
deleted file mode 100644
index f7118ce0a..000000000
--- a/src/Chill/CustomFieldsBundle/Service/CustomFieldProvider.php
+++ /dev/null
@@ -1,58 +0,0 @@
-
- */
-class CustomFieldProvider implements ContainerAwareInterface
-{
- private $servicesByType = array();
-
- /**
- *
- * @var \Symfony\Component\DependencyInjection\ContainerInterface
- */
- private $container;
-
- public function addCustomField($serviceName, $type)
- {
- $this->servicesByType[$type] = $serviceName;
- }
-
- /**
- *
- * @param string $type
- * @return CustomFieldInterface
- */
- public function getCustomFieldByType($type)
- {
- if (isset($this->servicesByType[$type])) {
- return $this->servicesByType[$type];
- } else {
- throw new \LogicException('the custom field with type '.$type.' '
- . 'is not found');
- }
- }
-
- public function setContainer(ContainerInterface $container = null)
- {
- if ($container === null) {
- throw new \LogicException('container should not be null');
- }
-
- $this->container = $container;
- }
-
- public function getAllFields()
- {
- return $this->servicesByType;
- }
-
-}
diff --git a/src/Chill/CustomFieldsBundle/Tests/Config/ConfigCustomizablesEntitiesTest.php b/src/Chill/CustomFieldsBundle/Tests/Config/ConfigCustomizablesEntitiesTest.php
deleted file mode 100644
index 9d0cc8e6e..000000000
--- a/src/Chill/CustomFieldsBundle/Tests/Config/ConfigCustomizablesEntitiesTest.php
+++ /dev/null
@@ -1,41 +0,0 @@
-
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-namespace Chill\CustomFieldsBundle\Tests\Config;
-
-use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
-
-/**
- * Test the option Customizables_entities
- *
- * @author Julien Fastré
- */
-class ConfigCustomizablesEntitiesTest extends KernelTestCase
-{
- public function testEmptyConfig()
- {
- self::bootKernel(array('environment' => 'test'));
- $customizableEntities = static::$kernel->getContainer()
- ->getParameter('chill_custom_fields.customizables_entities');
-
- $this->assertInternalType('array', $customizableEntities);
- $this->assertCount(0, $customizableEntities);
- }
-}
diff --git a/src/Chill/CustomFieldsBundle/Tests/Controller/AdressControllerTest_TODO.php b/src/Chill/CustomFieldsBundle/Tests/Controller/AdressControllerTest_TODO.php
deleted file mode 100644
index 7d1a9874f..000000000
--- a/src/Chill/CustomFieldsBundle/Tests/Controller/AdressControllerTest_TODO.php
+++ /dev/null
@@ -1,55 +0,0 @@
-request('GET', '/adress/');
- $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /adress/");
- $crawler = $client->click($crawler->selectLink('Create a new entry')->link());
-
- // Fill in the form and submit it
- $form = $crawler->selectButton('Create')->form(array(
- 'cl_customfieldsbundle_adress[field_name]' => 'Test',
- // ... other fields to fill
- ));
-
- $client->submit($form);
- $crawler = $client->followRedirect();
-
- // Check data in the show view
- $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")');
-
- // Edit the entity
- $crawler = $client->click($crawler->selectLink('Edit')->link());
-
- $form = $crawler->selectButton('Update')->form(array(
- 'cl_customfieldsbundle_adress[field_name]' => 'Foo',
- // ... other fields to fill
- ));
-
- $client->submit($form);
- $crawler = $client->followRedirect();
-
- // Check the element contains an attribute with value equals "Foo"
- $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]');
-
- // Delete the entity
- $client->submit($crawler->selectButton('Delete')->form());
- $crawler = $client->followRedirect();
-
- // Check the entity has been delete on the list
- $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent());
- }
-
- */
-}
diff --git a/src/Chill/CustomFieldsBundle/Tests/Controller/BlopEntity2ControllerTest_TODO.php b/src/Chill/CustomFieldsBundle/Tests/Controller/BlopEntity2ControllerTest_TODO.php
deleted file mode 100644
index 8b5700df2..000000000
--- a/src/Chill/CustomFieldsBundle/Tests/Controller/BlopEntity2ControllerTest_TODO.php
+++ /dev/null
@@ -1,55 +0,0 @@
-request('GET', '/blopentity2/');
- $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /blopentity2/");
- $crawler = $client->click($crawler->selectLink('Create a new entry')->link());
-
- // Fill in the form and submit it
- $form = $crawler->selectButton('Create')->form(array(
- 'cl_customfieldsbundle_blopentity2[field_name]' => 'Test',
- // ... other fields to fill
- ));
-
- $client->submit($form);
- $crawler = $client->followRedirect();
-
- // Check data in the show view
- $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")');
-
- // Edit the entity
- $crawler = $client->click($crawler->selectLink('Edit')->link());
-
- $form = $crawler->selectButton('Update')->form(array(
- 'cl_customfieldsbundle_blopentity2[field_name]' => 'Foo',
- // ... other fields to fill
- ));
-
- $client->submit($form);
- $crawler = $client->followRedirect();
-
- // Check the element contains an attribute with value equals "Foo"
- $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]');
-
- // Delete the entity
- $client->submit($crawler->selectButton('Delete')->form());
- $crawler = $client->followRedirect();
-
- // Check the entity has been delete on the list
- $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent());
- }
-
- */
-}
diff --git a/src/Chill/CustomFieldsBundle/Tests/Controller/BlopEntityControllerTest_TODO.php b/src/Chill/CustomFieldsBundle/Tests/Controller/BlopEntityControllerTest_TODO.php
deleted file mode 100644
index 47f920de6..000000000
--- a/src/Chill/CustomFieldsBundle/Tests/Controller/BlopEntityControllerTest_TODO.php
+++ /dev/null
@@ -1,55 +0,0 @@
-request('GET', '/blopentity/');
- $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /blopentity/");
- $crawler = $client->click($crawler->selectLink('Create a new entry')->link());
-
- // Fill in the form and submit it
- $form = $crawler->selectButton('Create')->form(array(
- 'cl_customfieldsbundle_blopentity[field_name]' => 'Test',
- // ... other fields to fill
- ));
-
- $client->submit($form);
- $crawler = $client->followRedirect();
-
- // Check data in the show view
- $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")');
-
- // Edit the entity
- $crawler = $client->click($crawler->selectLink('Edit')->link());
-
- $form = $crawler->selectButton('Update')->form(array(
- 'cl_customfieldsbundle_blopentity[field_name]' => 'Foo',
- // ... other fields to fill
- ));
-
- $client->submit($form);
- $crawler = $client->followRedirect();
-
- // Check the element contains an attribute with value equals "Foo"
- $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]');
-
- // Delete the entity
- $client->submit($crawler->selectButton('Delete')->form());
- $crawler = $client->followRedirect();
-
- // Check the entity has been delete on the list
- $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent());
- }
-
- */
-}
diff --git a/src/Chill/CustomFieldsBundle/Tests/Controller/CustomFieldControllerTest_TODO.php b/src/Chill/CustomFieldsBundle/Tests/Controller/CustomFieldControllerTest_TODO.php
deleted file mode 100644
index c41de20e0..000000000
--- a/src/Chill/CustomFieldsBundle/Tests/Controller/CustomFieldControllerTest_TODO.php
+++ /dev/null
@@ -1,55 +0,0 @@
-request('GET', '/customfield/');
- $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /customfield/");
- $crawler = $client->click($crawler->selectLink('Create a new entry')->link());
-
- // Fill in the form and submit it
- $form = $crawler->selectButton('Create')->form(array(
- 'cl_customfieldsbundle_customfield[field_name]' => 'Test',
- // ... other fields to fill
- ));
-
- $client->submit($form);
- $crawler = $client->followRedirect();
-
- // Check data in the show view
- $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")');
-
- // Edit the entity
- $crawler = $client->click($crawler->selectLink('Edit')->link());
-
- $form = $crawler->selectButton('Update')->form(array(
- 'cl_customfieldsbundle_customfield[field_name]' => 'Foo',
- // ... other fields to fill
- ));
-
- $client->submit($form);
- $crawler = $client->followRedirect();
-
- // Check the element contains an attribute with value equals "Foo"
- $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]');
-
- // Delete the entity
- $client->submit($crawler->selectButton('Delete')->form());
- $crawler = $client->followRedirect();
-
- // Check the entity has been delete on the list
- $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent());
- }
-
- */
-}
diff --git a/src/Chill/CustomFieldsBundle/Tests/Controller/CustomFieldsGroupControllerTest_TODO.php b/src/Chill/CustomFieldsBundle/Tests/Controller/CustomFieldsGroupControllerTest_TODO.php
deleted file mode 100644
index afa7bad25..000000000
--- a/src/Chill/CustomFieldsBundle/Tests/Controller/CustomFieldsGroupControllerTest_TODO.php
+++ /dev/null
@@ -1,55 +0,0 @@
-request('GET', '/customfieldsgroup/');
- $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /customfieldsgroup/");
- $crawler = $client->click($crawler->selectLink('Create a new entry')->link());
-
- // Fill in the form and submit it
- $form = $crawler->selectButton('Create')->form(array(
- 'cl_customfieldsbundle_customfieldsgroup[field_name]' => 'Test',
- // ... other fields to fill
- ));
-
- $client->submit($form);
- $crawler = $client->followRedirect();
-
- // Check data in the show view
- $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")');
-
- // Edit the entity
- $crawler = $client->click($crawler->selectLink('Edit')->link());
-
- $form = $crawler->selectButton('Update')->form(array(
- 'cl_customfieldsbundle_customfieldsgroup[field_name]' => 'Foo',
- // ... other fields to fill
- ));
-
- $client->submit($form);
- $crawler = $client->followRedirect();
-
- // Check the element contains an attribute with value equals "Foo"
- $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]');
-
- // Delete the entity
- $client->submit($crawler->selectButton('Delete')->form());
- $crawler = $client->followRedirect();
-
- // Check the entity has been delete on the list
- $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent());
- }
-
- */
-}
diff --git a/src/Chill/CustomFieldsBundle/Tests/Controller/EntityControllerTest_TODO.php b/src/Chill/CustomFieldsBundle/Tests/Controller/EntityControllerTest_TODO.php
deleted file mode 100644
index 427f13a16..000000000
--- a/src/Chill/CustomFieldsBundle/Tests/Controller/EntityControllerTest_TODO.php
+++ /dev/null
@@ -1,55 +0,0 @@
-request('GET', '/entity/');
- $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /entity/");
- $crawler = $client->click($crawler->selectLink('Create a new entry')->link());
-
- // Fill in the form and submit it
- $form = $crawler->selectButton('Create')->form(array(
- 'cl_customfieldsbundle_entity[field_name]' => 'Test',
- // ... other fields to fill
- ));
-
- $client->submit($form);
- $crawler = $client->followRedirect();
-
- // Check data in the show view
- $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")');
-
- // Edit the entity
- $crawler = $client->click($crawler->selectLink('Edit')->link());
-
- $form = $crawler->selectButton('Update')->form(array(
- 'cl_customfieldsbundle_entity[field_name]' => 'Foo',
- // ... other fields to fill
- ));
-
- $client->submit($form);
- $crawler = $client->followRedirect();
-
- // Check the element contains an attribute with value equals "Foo"
- $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]');
-
- // Delete the entity
- $client->submit($crawler->selectButton('Delete')->form());
- $crawler = $client->followRedirect();
-
- // Check the entity has been delete on the list
- $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent());
- }
-
- */
-}
diff --git a/src/Chill/CustomFieldsBundle/Tests/Controller/TestEntityControllerTest_TODO.php b/src/Chill/CustomFieldsBundle/Tests/Controller/TestEntityControllerTest_TODO.php
deleted file mode 100644
index b6e7d6fe7..000000000
--- a/src/Chill/CustomFieldsBundle/Tests/Controller/TestEntityControllerTest_TODO.php
+++ /dev/null
@@ -1,55 +0,0 @@
-request('GET', '/testentity/');
- $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /testentity/");
- $crawler = $client->click($crawler->selectLink('Create a new entry')->link());
-
- // Fill in the form and submit it
- $form = $crawler->selectButton('Create')->form(array(
- 'cl_customfieldsbundle_testentity[field_name]' => 'Test',
- // ... other fields to fill
- ));
-
- $client->submit($form);
- $crawler = $client->followRedirect();
-
- // Check data in the show view
- $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")');
-
- // Edit the entity
- $crawler = $client->click($crawler->selectLink('Edit')->link());
-
- $form = $crawler->selectButton('Update')->form(array(
- 'cl_customfieldsbundle_testentity[field_name]' => 'Foo',
- // ... other fields to fill
- ));
-
- $client->submit($form);
- $crawler = $client->followRedirect();
-
- // Check the element contains an attribute with value equals "Foo"
- $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]');
-
- // Delete the entity
- $client->submit($crawler->selectButton('Delete')->form());
- $crawler = $client->followRedirect();
-
- // Check the entity has been delete on the list
- $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent());
- }
-
- */
-}
diff --git a/src/Chill/CustomFieldsBundle/Tests/Controller/TestExtraColumnControllerTest_TODO.php b/src/Chill/CustomFieldsBundle/Tests/Controller/TestExtraColumnControllerTest_TODO.php
deleted file mode 100644
index e83f5cd9a..000000000
--- a/src/Chill/CustomFieldsBundle/Tests/Controller/TestExtraColumnControllerTest_TODO.php
+++ /dev/null
@@ -1,55 +0,0 @@
-request('GET', '/testextracolumn/');
- $this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /testextracolumn/");
- $crawler = $client->click($crawler->selectLink('Create a new entry')->link());
-
- // Fill in the form and submit it
- $form = $crawler->selectButton('Create')->form(array(
- 'cl_customfieldsbundle_testextracolumn[field_name]' => 'Test',
- // ... other fields to fill
- ));
-
- $client->submit($form);
- $crawler = $client->followRedirect();
-
- // Check data in the show view
- $this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")');
-
- // Edit the entity
- $crawler = $client->click($crawler->selectLink('Edit')->link());
-
- $form = $crawler->selectButton('Update')->form(array(
- 'cl_customfieldsbundle_testextracolumn[field_name]' => 'Foo',
- // ... other fields to fill
- ));
-
- $client->submit($form);
- $crawler = $client->followRedirect();
-
- // Check the element contains an attribute with value equals "Foo"
- $this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]');
-
- // Delete the entity
- $client->submit($crawler->selectButton('Delete')->form());
- $crawler = $client->followRedirect();
-
- // Check the entity has been delete on the list
- $this->assertNotRegExp('/Foo/', $client->getResponse()->getContent());
- }
-
- */
-}
diff --git a/src/Chill/CustomFieldsBundle/Tests/Fixtures/App/app/AppKernel.php b/src/Chill/CustomFieldsBundle/Tests/Fixtures/App/app/AppKernel.php
deleted file mode 100644
index 194a82a11..000000000
--- a/src/Chill/CustomFieldsBundle/Tests/Fixtures/App/app/AppKernel.php
+++ /dev/null
@@ -1,42 +0,0 @@
-load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
- }
-
- /**
- * @return string
- */
- public function getCacheDir()
- {
- return sys_get_temp_dir().'/CustomFieldsBundle/cache';
- }
-
- /**
- * @return string
- */
- public function getLogDir()
- {
- return sys_get_temp_dir().'/CustomFieldsBundle/logs';
- }
-}
-
diff --git a/src/Chill/CustomFieldsBundle/Tests/Fixtures/App/app/config/config.yml b/src/Chill/CustomFieldsBundle/Tests/Fixtures/App/app/config/config.yml
deleted file mode 100644
index e34d866e7..000000000
--- a/src/Chill/CustomFieldsBundle/Tests/Fixtures/App/app/config/config.yml
+++ /dev/null
@@ -1,27 +0,0 @@
-imports:
- - { resource: parameters.yml }
-
-framework:
- secret: Not very secret
- router: { resource: "%kernel.root_dir%/config/routing.yml" }
- form: true
- csrf_protection: true
- session: ~
- default_locale: fr
- translator: { fallback: fr }
- profiler: { only_exceptions: false }
- templating:
- engines: ['twig']
-
-doctrine:
- dbal:
- driver: pdo_pgsql
- host: "%database_host%"
- port: "%database_port%"
- dbname: "%database_name%"
- user: "%database_user%"
- password: "%database_password%"
- charset: UTF8
- orm:
- auto_generate_proxy_classes: "%kernel.debug%"
- auto_mapping: true
\ No newline at end of file
diff --git a/src/Chill/CustomFieldsBundle/Tests/Fixtures/App/app/config/config_dev.yml b/src/Chill/CustomFieldsBundle/Tests/Fixtures/App/app/config/config_dev.yml
deleted file mode 100644
index 81e0f80f4..000000000
--- a/src/Chill/CustomFieldsBundle/Tests/Fixtures/App/app/config/config_dev.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-imports:
- - { resource: config.yml } #here we import a config.yml file, this is not required
-
-framework:
- test: ~
- session:
- storage_id: session.storage.filesystem
\ No newline at end of file
diff --git a/src/Chill/CustomFieldsBundle/Tests/Fixtures/App/app/config/config_test.yml b/src/Chill/CustomFieldsBundle/Tests/Fixtures/App/app/config/config_test.yml
deleted file mode 100644
index fbef213f6..000000000
--- a/src/Chill/CustomFieldsBundle/Tests/Fixtures/App/app/config/config_test.yml
+++ /dev/null
@@ -1,8 +0,0 @@
-# config/config_test.yml
-imports:
- - { resource: config.yml } #here we import a config.yml file, this is not required
-
-framework:
- test: ~
- session:
- storage_id: session.storage.filesystem
\ No newline at end of file
diff --git a/src/Chill/CustomFieldsBundle/Tests/Fixtures/App/app/config/parameters.yml.dist b/src/Chill/CustomFieldsBundle/Tests/Fixtures/App/app/config/parameters.yml.dist
deleted file mode 100644
index fa3e55dae..000000000
--- a/src/Chill/CustomFieldsBundle/Tests/Fixtures/App/app/config/parameters.yml.dist
+++ /dev/null
@@ -1,6 +0,0 @@
-parameters:
- database_host: 127.0.0.1
- database_port: 5434
- database_name: symfony
- database_user: symfony
- database_password: symfony
\ No newline at end of file
diff --git a/src/Chill/CustomFieldsBundle/Tests/Fixtures/App/app/config/routing.yml b/src/Chill/CustomFieldsBundle/Tests/Fixtures/App/app/config/routing.yml
deleted file mode 100644
index 38660f8c9..000000000
--- a/src/Chill/CustomFieldsBundle/Tests/Fixtures/App/app/config/routing.yml
+++ /dev/null
@@ -1,4 +0,0 @@
-cl_custom_fields:
- resource: "@ChillCustomFieldsBundle/Resources/config/routing.yml"
- prefix: /
-
diff --git a/src/Chill/CustomFieldsBundle/Tests/Fixtures/App/app/console.php b/src/Chill/CustomFieldsBundle/Tests/Fixtures/App/app/console.php
deleted file mode 100644
index cf7efc348..000000000
--- a/src/Chill/CustomFieldsBundle/Tests/Fixtures/App/app/console.php
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/usr/bin/env php
-getParameterOption(array('--env', '-e'), getenv('SYMFONY_ENV') ?: 'dev');
-$debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption(array('--no-debug', '')) && $env !== 'prod';
-if ($debug) {
-Debug::enable();
-}
-$kernel = new AppKernel($env, $debug);
-$application = new Application($kernel);
-$application->run($input);
-
diff --git a/src/Chill/CustomFieldsBundle/Tests/Fixtures/App/web/app_dev.php b/src/Chill/CustomFieldsBundle/Tests/Fixtures/App/web/app_dev.php
deleted file mode 100644
index e0279c2ae..000000000
--- a/src/Chill/CustomFieldsBundle/Tests/Fixtures/App/web/app_dev.php
+++ /dev/null
@@ -1,30 +0,0 @@
-loadClassCache();
-$request = Request::createFromGlobals();
-$response = $kernel->handle($request);
-$response->send();
-$kernel->terminate($request, $response);
diff --git a/src/Chill/CustomFieldsBundle/Tests/bootstrap.php b/src/Chill/CustomFieldsBundle/Tests/bootstrap.php
deleted file mode 100644
index 9211155e5..000000000
--- a/src/Chill/CustomFieldsBundle/Tests/bootstrap.php
+++ /dev/null
@@ -1,8 +0,0 @@
-=5.3.2"
- },
- "require-dev": {
- "doctrine/cache": "1.*",
- "phpunit/phpunit": "4.*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Doctrine\\Common\\Annotations\\": "lib/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Roman Borschel",
- "email": "roman@code-factory.org"
- },
- {
- "name": "Benjamin Eberlei",
- "email": "kontakt@beberlei.de"
- },
- {
- "name": "Guilherme Blanco",
- "email": "guilhermeblanco@gmail.com"
- },
- {
- "name": "Jonathan Wage",
- "email": "jonwage@gmail.com"
- },
- {
- "name": "Johannes Schmitt",
- "email": "schmittjoh@gmail.com"
- }
- ],
- "description": "Docblock Annotations Parser",
- "homepage": "http://www.doctrine-project.org",
- "keywords": [
- "annotations",
- "docblock",
- "parser"
- ],
- "time": "2014-09-25 16:45:30"
- },
- {
- "name": "doctrine/cache",
- "version": "v1.3.1",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/cache.git",
- "reference": "cf483685798a72c93bf4206e3dd6358ea07d64e7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/cache/zipball/cf483685798a72c93bf4206e3dd6358ea07d64e7",
- "reference": "cf483685798a72c93bf4206e3dd6358ea07d64e7",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.2"
- },
- "conflict": {
- "doctrine/common": ">2.2,<2.4"
- },
- "require-dev": {
- "phpunit/phpunit": ">=3.7",
- "satooshi/php-coveralls": "~0.6"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.4.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Doctrine\\Common\\Cache\\": "lib/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Roman Borschel",
- "email": "roman@code-factory.org"
- },
- {
- "name": "Benjamin Eberlei",
- "email": "kontakt@beberlei.de"
- },
- {
- "name": "Guilherme Blanco",
- "email": "guilhermeblanco@gmail.com"
- },
- {
- "name": "Jonathan Wage",
- "email": "jonwage@gmail.com"
- },
- {
- "name": "Johannes Schmitt",
- "email": "schmittjoh@gmail.com"
- }
- ],
- "description": "Caching library offering an object-oriented API for many cache backends",
- "homepage": "http://www.doctrine-project.org",
- "keywords": [
- "cache",
- "caching"
- ],
- "time": "2014-09-17 14:24:04"
- },
- {
- "name": "doctrine/collections",
- "version": "v1.2",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/collections.git",
- "reference": "b99c5c46c87126201899afe88ec490a25eedd6a2"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/collections/zipball/b99c5c46c87126201899afe88ec490a25eedd6a2",
- "reference": "b99c5c46c87126201899afe88ec490a25eedd6a2",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.2"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.2.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Doctrine\\Common\\Collections\\": "lib/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jonathan Wage",
- "email": "jonwage@gmail.com",
- "homepage": "http://www.jwage.com/",
- "role": "Creator"
- },
- {
- "name": "Guilherme Blanco",
- "email": "guilhermeblanco@gmail.com",
- "homepage": "http://www.instaclick.com"
- },
- {
- "name": "Roman Borschel",
- "email": "roman@code-factory.org"
- },
- {
- "name": "Benjamin Eberlei",
- "email": "kontakt@beberlei.de"
- },
- {
- "name": "Johannes Schmitt",
- "email": "schmittjoh@gmail.com",
- "homepage": "https://github.com/schmittjoh",
- "role": "Developer of wrapped JMSSerializerBundle"
- }
- ],
- "description": "Collections Abstraction library",
- "homepage": "http://www.doctrine-project.org",
- "keywords": [
- "array",
- "collections",
- "iterator"
- ],
- "time": "2014-02-03 23:07:43"
- },
- {
- "name": "doctrine/common",
- "version": "v2.4.2",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/common.git",
- "reference": "5db6ab40e4c531f14dad4ca96a394dfce5d4255b"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/common/zipball/5db6ab40e4c531f14dad4ca96a394dfce5d4255b",
- "reference": "5db6ab40e4c531f14dad4ca96a394dfce5d4255b",
- "shasum": ""
- },
- "require": {
- "doctrine/annotations": "1.*",
- "doctrine/cache": "1.*",
- "doctrine/collections": "1.*",
- "doctrine/inflector": "1.*",
- "doctrine/lexer": "1.*",
- "php": ">=5.3.2"
- },
- "require-dev": {
- "phpunit/phpunit": "~3.7"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.4.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Doctrine\\Common\\": "lib/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jonathan Wage",
- "email": "jonwage@gmail.com",
- "homepage": "http://www.jwage.com/",
- "role": "Creator"
- },
- {
- "name": "Guilherme Blanco",
- "email": "guilhermeblanco@gmail.com",
- "homepage": "http://www.instaclick.com"
- },
- {
- "name": "Roman Borschel",
- "email": "roman@code-factory.org"
- },
- {
- "name": "Benjamin Eberlei",
- "email": "kontakt@beberlei.de"
- },
- {
- "name": "Johannes Schmitt",
- "email": "schmittjoh@gmail.com",
- "homepage": "https://github.com/schmittjoh",
- "role": "Developer of wrapped JMSSerializerBundle"
- }
- ],
- "description": "Common Library for Doctrine projects",
- "homepage": "http://www.doctrine-project.org",
- "keywords": [
- "annotations",
- "collections",
- "eventmanager",
- "persistence",
- "spl"
- ],
- "time": "2014-05-21 19:28:51"
- },
- {
- "name": "doctrine/dbal",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/dbal.git",
- "reference": "d12672808124e711c2cb78a82d4461ba2e89c7ef"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/dbal/zipball/d12672808124e711c2cb78a82d4461ba2e89c7ef",
- "reference": "d12672808124e711c2cb78a82d4461ba2e89c7ef",
- "shasum": ""
- },
- "require": {
- "doctrine/common": ">=2.4,<2.6-dev",
- "php": ">=5.3.2"
- },
- "require-dev": {
- "phpunit/phpunit": "4.*",
- "symfony/console": "2.*"
- },
- "suggest": {
- "symfony/console": "For helpful console commands such as SQL execution and import of files."
- },
- "bin": [
- "bin/doctrine-dbal"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.5.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Doctrine\\DBAL\\": "lib/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Roman Borschel",
- "email": "roman@code-factory.org"
- },
- {
- "name": "Benjamin Eberlei",
- "email": "kontakt@beberlei.de"
- },
- {
- "name": "Guilherme Blanco",
- "email": "guilhermeblanco@gmail.com"
- },
- {
- "name": "Jonathan Wage",
- "email": "jonwage@gmail.com"
- }
- ],
- "description": "Database Abstraction Layer",
- "homepage": "http://www.doctrine-project.org",
- "keywords": [
- "database",
- "dbal",
- "persistence",
- "queryobject"
- ],
- "time": "2014-10-29 16:12:22"
- },
- {
- "name": "doctrine/doctrine-bundle",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/DoctrineBundle.git",
- "reference": "d9763ccbb637958133c42bdcc3d31c5a6821b9e2"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/DoctrineBundle/zipball/d9763ccbb637958133c42bdcc3d31c5a6821b9e2",
- "reference": "d9763ccbb637958133c42bdcc3d31c5a6821b9e2",
- "shasum": ""
- },
- "require": {
- "doctrine/dbal": "~2.3",
- "doctrine/doctrine-cache-bundle": "~1.0",
- "jdorn/sql-formatter": "~1.1",
- "php": ">=5.3.2",
- "symfony/doctrine-bridge": "~2.2",
- "symfony/framework-bundle": "~2.2"
- },
- "require-dev": {
- "doctrine/orm": "~2.3",
- "phpunit/php-code-coverage": "~1.2",
- "phpunit/phpunit": "~3.7",
- "phpunit/phpunit-mock-objects": "~1.2",
- "satooshi/php-coveralls": "~0.6.1",
- "symfony/validator": "~2.2",
- "symfony/yaml": "~2.2",
- "twig/twig": "~1"
- },
- "suggest": {
- "doctrine/orm": "The Doctrine ORM integration is optional in the bundle.",
- "symfony/web-profiler-bundle": "to use the data collector"
- },
- "type": "symfony-bundle",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Doctrine\\Bundle\\DoctrineBundle\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Symfony Community",
- "homepage": "http://symfony.com/contributors"
- },
- {
- "name": "Benjamin Eberlei",
- "email": "kontakt@beberlei.de"
- },
- {
- "name": "Doctrine Project",
- "homepage": "http://www.doctrine-project.org/"
- },
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- }
- ],
- "description": "Symfony DoctrineBundle",
- "homepage": "http://www.doctrine-project.org",
- "keywords": [
- "database",
- "dbal",
- "orm",
- "persistence"
- ],
- "time": "2014-10-04 16:13:24"
- },
- {
- "name": "doctrine/doctrine-cache-bundle",
- "version": "1.0.0",
- "target-dir": "Doctrine/Bundle/DoctrineCacheBundle",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/DoctrineCacheBundle.git",
- "reference": "49a9d2d9a35863201e5e608d1194db28946c4552"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/DoctrineCacheBundle/zipball/49a9d2d9a35863201e5e608d1194db28946c4552",
- "reference": "49a9d2d9a35863201e5e608d1194db28946c4552",
- "shasum": ""
- },
- "require": {
- "doctrine/cache": "~1.3",
- "doctrine/inflector": "~1.0",
- "php": ">=5.3.2",
- "symfony/doctrine-bridge": "~2.2",
- "symfony/framework-bundle": "~2.2",
- "symfony/security": "~2.2"
- },
- "require-dev": {
- "instaclick/coding-standard": "~1.1",
- "instaclick/object-calisthenics-sniffs": "dev-master",
- "instaclick/symfony2-coding-standard": "dev-remaster",
- "phpunit/phpunit": "~3.7",
- "satooshi/php-coveralls": "~0.6.1",
- "squizlabs/php_codesniffer": "dev-master",
- "symfony/validator": "~2.2",
- "symfony/yaml": "~2.2"
- },
- "type": "symfony-bundle",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Doctrine\\Bundle\\DoctrineCacheBundle": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com",
- "homepage": "http://fabien.potencier.org",
- "role": "Lead Developer"
- },
- {
- "name": "Symfony Community",
- "homepage": "http://symfony.com/contributors"
- },
- {
- "name": "Benjamin Eberlei",
- "email": "kontakt@beberlei.de"
- },
- {
- "name": "Fabio B. Silva",
- "email": "fabio.bat.silva@gmail.com"
- },
- {
- "name": "Guilherme Blanco",
- "email": "guilhermeblanco@hotmail.com"
- },
- {
- "name": "Doctrine Project",
- "homepage": "http://www.doctrine-project.org/"
- }
- ],
- "description": "Symfony2 Bundle for Doctrine Cache",
- "homepage": "http://www.doctrine-project.org",
- "keywords": [
- "cache",
- "caching"
- ],
- "time": "2014-03-04 19:18:55"
- },
- {
- "name": "doctrine/inflector",
- "version": "v1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/inflector.git",
- "reference": "54b8333d2a5682afdc690060c1cf384ba9f47f08"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/inflector/zipball/54b8333d2a5682afdc690060c1cf384ba9f47f08",
- "reference": "54b8333d2a5682afdc690060c1cf384ba9f47f08",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.2"
- },
- "type": "library",
- "autoload": {
- "psr-0": {
- "Doctrine\\Common\\Inflector\\": "lib/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jonathan Wage",
- "email": "jonwage@gmail.com",
- "homepage": "http://www.jwage.com/",
- "role": "Creator"
- },
- {
- "name": "Guilherme Blanco",
- "email": "guilhermeblanco@gmail.com",
- "homepage": "http://www.instaclick.com"
- },
- {
- "name": "Roman Borschel",
- "email": "roman@code-factory.org"
- },
- {
- "name": "Benjamin Eberlei",
- "email": "kontakt@beberlei.de"
- },
- {
- "name": "Johannes Schmitt",
- "email": "schmittjoh@gmail.com",
- "homepage": "https://github.com/schmittjoh",
- "role": "Developer of wrapped JMSSerializerBundle"
- }
- ],
- "description": "Common String Manipulations with regard to casing and singular/plural rules.",
- "homepage": "http://www.doctrine-project.org",
- "keywords": [
- "inflection",
- "pluarlize",
- "singuarlize",
- "string"
- ],
- "time": "2013-01-10 21:49:15"
- },
- {
- "name": "doctrine/instantiator",
- "version": "1.0.4",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/instantiator.git",
- "reference": "f976e5de371104877ebc89bd8fecb0019ed9c119"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/instantiator/zipball/f976e5de371104877ebc89bd8fecb0019ed9c119",
- "reference": "f976e5de371104877ebc89bd8fecb0019ed9c119",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3,<8.0-DEV"
- },
- "require-dev": {
- "athletic/athletic": "~0.1.8",
- "ext-pdo": "*",
- "ext-phar": "*",
- "phpunit/phpunit": "~4.0",
- "squizlabs/php_codesniffer": "2.0.*@ALPHA"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Doctrine\\Instantiator\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Marco Pivetta",
- "email": "ocramius@gmail.com",
- "homepage": "http://ocramius.github.com/"
- }
- ],
- "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
- "homepage": "https://github.com/doctrine/instantiator",
- "keywords": [
- "constructor",
- "instantiate"
- ],
- "time": "2014-10-13 12:58:55"
- },
- {
- "name": "doctrine/lexer",
- "version": "v1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/lexer.git",
- "reference": "2f708a85bb3aab5d99dab8be435abd73e0b18acb"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/lexer/zipball/2f708a85bb3aab5d99dab8be435abd73e0b18acb",
- "reference": "2f708a85bb3aab5d99dab8be435abd73e0b18acb",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.2"
- },
- "type": "library",
- "autoload": {
- "psr-0": {
- "Doctrine\\Common\\Lexer\\": "lib/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Guilherme Blanco",
- "email": "guilhermeblanco@gmail.com",
- "homepage": "http://www.instaclick.com"
- },
- {
- "name": "Roman Borschel",
- "email": "roman@code-factory.org"
- },
- {
- "name": "Johannes Schmitt",
- "email": "schmittjoh@gmail.com",
- "homepage": "https://github.com/schmittjoh",
- "role": "Developer of wrapped JMSSerializerBundle"
- }
- ],
- "description": "Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.",
- "homepage": "http://www.doctrine-project.org",
- "keywords": [
- "lexer",
- "parser"
- ],
- "time": "2013-01-12 18:59:04"
- },
- {
- "name": "doctrine/orm",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/doctrine/doctrine2.git",
- "reference": "20c6bfd360b3db9e9bc53e5ae37afe1a22dccca3"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/doctrine/doctrine2/zipball/20c6bfd360b3db9e9bc53e5ae37afe1a22dccca3",
- "reference": "20c6bfd360b3db9e9bc53e5ae37afe1a22dccca3",
- "shasum": ""
- },
- "require": {
- "doctrine/collections": "~1.2",
- "doctrine/dbal": ">=2.5-dev,<2.6-dev",
- "doctrine/instantiator": "~1.0.1",
- "ext-pdo": "*",
- "php": ">=5.3.2",
- "symfony/console": "~2.3"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.0",
- "satooshi/php-coveralls": "dev-master",
- "symfony/yaml": "~2.1"
- },
- "suggest": {
- "symfony/yaml": "If you want to use YAML Metadata Mapping Driver"
- },
- "bin": [
- "bin/doctrine",
- "bin/doctrine.php"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.5.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Doctrine\\ORM\\": "lib/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Roman Borschel",
- "email": "roman@code-factory.org"
- },
- {
- "name": "Benjamin Eberlei",
- "email": "kontakt@beberlei.de"
- },
- {
- "name": "Guilherme Blanco",
- "email": "guilhermeblanco@gmail.com"
- },
- {
- "name": "Jonathan Wage",
- "email": "jonwage@gmail.com"
- }
- ],
- "description": "Object-Relational-Mapper for PHP",
- "homepage": "http://www.doctrine-project.org",
- "keywords": [
- "database",
- "orm"
- ],
- "time": "2014-10-23 05:01:59"
- },
- {
- "name": "jdorn/sql-formatter",
- "version": "v1.2.17",
- "source": {
- "type": "git",
- "url": "https://github.com/jdorn/sql-formatter.git",
- "reference": "64990d96e0959dff8e059dfcdc1af130728d92bc"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/jdorn/sql-formatter/zipball/64990d96e0959dff8e059dfcdc1af130728d92bc",
- "reference": "64990d96e0959dff8e059dfcdc1af130728d92bc",
- "shasum": ""
- },
- "require": {
- "php": ">=5.2.4"
- },
- "require-dev": {
- "phpunit/phpunit": "3.7.*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.3.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "lib"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jeremy Dorn",
- "email": "jeremy@jeremydorn.com",
- "homepage": "http://jeremydorn.com/"
- }
- ],
- "description": "a PHP SQL highlighting library",
- "homepage": "https://github.com/jdorn/sql-formatter/",
- "keywords": [
- "highlight",
- "sql"
- ],
- "time": "2014-01-12 16:20:24"
- },
- {
- "name": "kriswallsmith/assetic",
- "version": "v1.2.0",
- "source": {
- "type": "git",
- "url": "https://github.com/kriswallsmith/assetic.git",
- "reference": "df991c124a2212371443b586a1be767500036dee"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/kriswallsmith/assetic/zipball/df991c124a2212371443b586a1be767500036dee",
- "reference": "df991c124a2212371443b586a1be767500036dee",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.1",
- "symfony/process": "~2.1"
- },
- "require-dev": {
- "cssmin/cssmin": "*",
- "joliclic/javascript-packer": "*",
- "kamicane/packager": "*",
- "leafo/lessphp": "*",
- "leafo/scssphp": "*",
- "leafo/scssphp-compass": "*",
- "mrclay/minify": "*",
- "patchwork/jsqueeze": "~1.0",
- "phpunit/phpunit": "~4",
- "psr/log": "~1.0",
- "ptachoire/cssembed": "*",
- "twig/twig": "~1.6"
- },
- "suggest": {
- "leafo/lessphp": "Assetic provides the integration with the lessphp LESS compiler",
- "leafo/scssphp": "Assetic provides the integration with the scssphp SCSS compiler",
- "leafo/scssphp-compass": "Assetic provides the integration with the SCSS compass plugin",
- "patchwork/jsqueeze": "Assetic provides the integration with the JSqueeze JavaScript compressor",
- "ptachoire/cssembed": "Assetic provides the integration with phpcssembed to embed data uris",
- "twig/twig": "Assetic provides the integration with the Twig templating engine"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.2-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Assetic": "src/"
- },
- "files": [
- "src/functions.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Kris Wallsmith",
- "email": "kris.wallsmith@gmail.com",
- "homepage": "http://kriswallsmith.net/"
- }
- ],
- "description": "Asset Management for PHP",
- "homepage": "https://github.com/kriswallsmith/assetic",
- "keywords": [
- "assets",
- "compression",
- "minification"
- ],
- "time": "2014-10-14 14:45:32"
- },
- {
- "name": "monolog/monolog",
- "version": "1.11.0",
- "source": {
- "type": "git",
- "url": "https://github.com/Seldaek/monolog.git",
- "reference": "ec3961874c43840e96da3a8a1ed20d8c73d7e5aa"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Seldaek/monolog/zipball/ec3961874c43840e96da3a8a1ed20d8c73d7e5aa",
- "reference": "ec3961874c43840e96da3a8a1ed20d8c73d7e5aa",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0",
- "psr/log": "~1.0"
- },
- "provide": {
- "psr/log-implementation": "1.0.0"
- },
- "require-dev": {
- "aws/aws-sdk-php": "~2.4, >2.4.8",
- "doctrine/couchdb": "~1.0@dev",
- "graylog2/gelf-php": "~1.0",
- "phpunit/phpunit": "~3.7.0",
- "raven/raven": "~0.5",
- "ruflin/elastica": "0.90.*",
- "videlalvaro/php-amqplib": "~2.4"
- },
- "suggest": {
- "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB",
- "doctrine/couchdb": "Allow sending log messages to a CouchDB server",
- "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)",
- "ext-mongo": "Allow sending log messages to a MongoDB server",
- "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server",
- "raven/raven": "Allow sending log messages to a Sentry server",
- "rollbar/rollbar": "Allow sending log messages to Rollbar",
- "ruflin/elastica": "Allow sending log messages to an Elastic Search server",
- "videlalvaro/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.11.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Monolog\\": "src/Monolog"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Jordi Boggiano",
- "email": "j.boggiano@seld.be",
- "homepage": "http://seld.be"
- }
- ],
- "description": "Sends your logs to files, sockets, inboxes, databases and various web services",
- "homepage": "http://github.com/Seldaek/monolog",
- "keywords": [
- "log",
- "logging",
- "psr-3"
- ],
- "time": "2014-09-30 13:30:58"
- },
- {
- "name": "psr/log",
- "version": "1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/log.git",
- "reference": "fe0936ee26643249e916849d48e3a51d5f5e278b"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/log/zipball/fe0936ee26643249e916849d48e3a51d5f5e278b",
- "reference": "fe0936ee26643249e916849d48e3a51d5f5e278b",
- "shasum": ""
- },
- "type": "library",
- "autoload": {
- "psr-0": {
- "Psr\\Log\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common interface for logging libraries",
- "keywords": [
- "log",
- "psr",
- "psr-3"
- ],
- "time": "2012-12-21 11:40:51"
- },
- {
- "name": "sensio/distribution-bundle",
- "version": "v3.0.8",
- "target-dir": "Sensio/Bundle/DistributionBundle",
- "source": {
- "type": "git",
- "url": "https://github.com/sensiolabs/SensioDistributionBundle.git",
- "reference": "bc5e96bb4faf6bee7121085951d11b89488952f5"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sensiolabs/SensioDistributionBundle/zipball/bc5e96bb4faf6bee7121085951d11b89488952f5",
- "reference": "bc5e96bb4faf6bee7121085951d11b89488952f5",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3",
- "sensiolabs/security-checker": "~2.0",
- "symfony/class-loader": "~2.2",
- "symfony/form": "~2.2",
- "symfony/framework-bundle": "~2.3",
- "symfony/process": "~2.2",
- "symfony/validator": "~2.2",
- "symfony/yaml": "~2.2"
- },
- "type": "symfony-bundle",
- "extra": {
- "branch-alias": {
- "dev-master": "3.0.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Sensio\\Bundle\\DistributionBundle": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- }
- ],
- "description": "Base bundle for Symfony Distributions",
- "keywords": [
- "configuration",
- "distribution"
- ],
- "time": "2014-11-03 21:16:34"
- },
- {
- "name": "sensio/framework-extra-bundle",
- "version": "v3.0.2",
- "target-dir": "Sensio/Bundle/FrameworkExtraBundle",
- "source": {
- "type": "git",
- "url": "https://github.com/sensiolabs/SensioFrameworkExtraBundle.git",
- "reference": "9b22aaee517e80aad3238ea0328458b6f964066f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sensiolabs/SensioFrameworkExtraBundle/zipball/9b22aaee517e80aad3238ea0328458b6f964066f",
- "reference": "9b22aaee517e80aad3238ea0328458b6f964066f",
- "shasum": ""
- },
- "require": {
- "doctrine/common": "~2.2",
- "symfony/framework-bundle": "~2.3"
- },
- "require-dev": {
- "symfony/expression-language": "~2.4",
- "symfony/security-bundle": "~2.4"
- },
- "suggest": {
- "symfony/expression-language": "",
- "symfony/security-bundle": ""
- },
- "type": "symfony-bundle",
- "extra": {
- "branch-alias": {
- "dev-master": "3.0.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Sensio\\Bundle\\FrameworkExtraBundle": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- }
- ],
- "description": "This bundle provides a way to configure your controllers with annotations",
- "keywords": [
- "annotations",
- "controllers"
- ],
- "time": "2014-09-02 07:11:30"
- },
- {
- "name": "sensiolabs/security-checker",
- "version": "v2.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sensiolabs/security-checker.git",
- "reference": "5b4eb4743ebe68276c911c84101ecdf4a9ae76ee"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sensiolabs/security-checker/zipball/5b4eb4743ebe68276c911c84101ecdf4a9ae76ee",
- "reference": "5b4eb4743ebe68276c911c84101ecdf4a9ae76ee",
- "shasum": ""
- },
- "require": {
- "ext-curl": "*",
- "symfony/console": "~2.0"
- },
- "bin": [
- "security-checker"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "SensioLabs\\Security": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien.potencier@gmail.com"
- }
- ],
- "description": "A security checker for your composer.lock",
- "time": "2014-07-19 10:52:35"
- },
- {
- "name": "swiftmailer/swiftmailer",
- "version": "v5.3.0",
- "source": {
- "type": "git",
- "url": "https://github.com/swiftmailer/swiftmailer.git",
- "reference": "b86b927dfefdb56ab0b22d1350033d9a38e9f205"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/b86b927dfefdb56ab0b22d1350033d9a38e9f205",
- "reference": "b86b927dfefdb56ab0b22d1350033d9a38e9f205",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "mockery/mockery": "~0.9.1"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "5.3-dev"
- }
- },
- "autoload": {
- "files": [
- "lib/swift_required.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Chris Corbyn"
- },
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- }
- ],
- "description": "Swiftmailer, free feature-rich PHP mailer",
- "homepage": "http://swiftmailer.org",
- "keywords": [
- "mail",
- "mailer"
- ],
- "time": "2014-10-04 05:53:18"
- },
- {
- "name": "symfony/assetic-bundle",
- "version": "v2.5.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/AsseticBundle.git",
- "reference": "90ea7fb66d6d5245fd4afc16e4c8070214254fec"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/AsseticBundle/zipball/90ea7fb66d6d5245fd4afc16e4c8070214254fec",
- "reference": "90ea7fb66d6d5245fd4afc16e4c8070214254fec",
- "shasum": ""
- },
- "require": {
- "kriswallsmith/assetic": "~1.2",
- "php": ">=5.3.0",
- "symfony/console": "~2.1",
- "symfony/framework-bundle": "~2.1",
- "symfony/yaml": "~2.1"
- },
- "require-dev": {
- "kriswallsmith/spork": "~0.2",
- "patchwork/jsqueeze": "~1.0",
- "symfony/class-loader": "~2.1",
- "symfony/css-selector": "~2.1",
- "symfony/dom-crawler": "~2.1",
- "symfony/twig-bundle": "~2.1"
- },
- "suggest": {
- "kriswallsmith/spork": "to be able to dump assets in parallel",
- "symfony/twig-bundle": "to use the Twig integration"
- },
- "type": "symfony-bundle",
- "extra": {
- "branch-alias": {
- "dev-master": "2.5-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Bundle\\AsseticBundle\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Kris Wallsmith",
- "email": "kris.wallsmith@gmail.com",
- "homepage": "http://kriswallsmith.net/"
- }
- ],
- "description": "Integrates Assetic into Symfony2",
- "homepage": "https://github.com/symfony/AsseticBundle",
- "keywords": [
- "assets",
- "compression",
- "minification"
- ],
- "time": "2014-10-15 12:03:38"
- },
- {
- "name": "symfony/monolog-bundle",
- "version": "v2.6.1",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/MonologBundle.git",
- "reference": "227bbeefe30f2d95e3fe5fbd1ccda414287a957a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/MonologBundle/zipball/227bbeefe30f2d95e3fe5fbd1ccda414287a957a",
- "reference": "227bbeefe30f2d95e3fe5fbd1ccda414287a957a",
- "shasum": ""
- },
- "require": {
- "monolog/monolog": "~1.8",
- "php": ">=5.3.2",
- "symfony/config": "~2.3",
- "symfony/dependency-injection": "~2.3",
- "symfony/http-kernel": "~2.3",
- "symfony/monolog-bridge": "~2.3"
- },
- "require-dev": {
- "symfony/console": "~2.3",
- "symfony/yaml": "~2.3"
- },
- "type": "symfony-bundle",
- "extra": {
- "branch-alias": {
- "dev-master": "2.6.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Bundle\\MonologBundle\\": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Symfony Community",
- "homepage": "http://symfony.com/contributors"
- },
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- }
- ],
- "description": "Symfony MonologBundle",
- "homepage": "http://symfony.com",
- "keywords": [
- "log",
- "logging"
- ],
- "time": "2014-07-21 00:36:06"
- },
- {
- "name": "symfony/swiftmailer-bundle",
- "version": "v2.3.7",
- "target-dir": "Symfony/Bundle/SwiftmailerBundle",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/SwiftmailerBundle.git",
- "reference": "e98defd402f72e8b54a029ba4d3ac4cb51dc3577"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/SwiftmailerBundle/zipball/e98defd402f72e8b54a029ba4d3ac4cb51dc3577",
- "reference": "e98defd402f72e8b54a029ba4d3ac4cb51dc3577",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.2",
- "swiftmailer/swiftmailer": ">=4.2.0,~5.0",
- "symfony/swiftmailer-bridge": "~2.1"
- },
- "require-dev": {
- "symfony/config": "~2.1",
- "symfony/dependency-injection": "~2.1",
- "symfony/http-kernel": "~2.1",
- "symfony/yaml": "~2.1"
- },
- "type": "symfony-bundle",
- "extra": {
- "branch-alias": {
- "dev-master": "2.3-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Symfony\\Bundle\\SwiftmailerBundle": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com",
- "homepage": "http://fabien.potencier.org",
- "role": "Lead Developer"
- },
- {
- "name": "Symfony Community",
- "homepage": "http://symfony.com/contributors"
- }
- ],
- "description": "Symfony SwiftmailerBundle",
- "homepage": "http://symfony.com",
- "time": "2014-04-05 17:15:52"
- },
- {
- "name": "symfony/symfony",
- "version": "v2.5.6",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/symfony.git",
- "reference": "1a1b1e528935f15dd76169f8b1dc3ef97f0d6210"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/symfony/zipball/1a1b1e528935f15dd76169f8b1dc3ef97f0d6210",
- "reference": "1a1b1e528935f15dd76169f8b1dc3ef97f0d6210",
- "shasum": ""
- },
- "require": {
- "doctrine/common": "~2.2",
- "php": ">=5.3.3",
- "psr/log": "~1.0",
- "twig/twig": "~1.12"
- },
- "replace": {
- "symfony/browser-kit": "self.version",
- "symfony/class-loader": "self.version",
- "symfony/config": "self.version",
- "symfony/console": "self.version",
- "symfony/css-selector": "self.version",
- "symfony/debug": "self.version",
- "symfony/dependency-injection": "self.version",
- "symfony/doctrine-bridge": "self.version",
- "symfony/dom-crawler": "self.version",
- "symfony/event-dispatcher": "self.version",
- "symfony/expression-language": "self.version",
- "symfony/filesystem": "self.version",
- "symfony/finder": "self.version",
- "symfony/form": "self.version",
- "symfony/framework-bundle": "self.version",
- "symfony/http-foundation": "self.version",
- "symfony/http-kernel": "self.version",
- "symfony/intl": "self.version",
- "symfony/locale": "self.version",
- "symfony/monolog-bridge": "self.version",
- "symfony/options-resolver": "self.version",
- "symfony/process": "self.version",
- "symfony/propel1-bridge": "self.version",
- "symfony/property-access": "self.version",
- "symfony/proxy-manager-bridge": "self.version",
- "symfony/routing": "self.version",
- "symfony/security": "self.version",
- "symfony/security-acl": "self.version",
- "symfony/security-bundle": "self.version",
- "symfony/security-core": "self.version",
- "symfony/security-csrf": "self.version",
- "symfony/security-http": "self.version",
- "symfony/serializer": "self.version",
- "symfony/stopwatch": "self.version",
- "symfony/swiftmailer-bridge": "self.version",
- "symfony/templating": "self.version",
- "symfony/translation": "self.version",
- "symfony/twig-bridge": "self.version",
- "symfony/twig-bundle": "self.version",
- "symfony/validator": "self.version",
- "symfony/web-profiler-bundle": "self.version",
- "symfony/yaml": "self.version"
- },
- "require-dev": {
- "doctrine/data-fixtures": "1.0.*",
- "doctrine/dbal": "~2.2",
- "doctrine/orm": "~2.2,>=2.2.3",
- "egulias/email-validator": "~1.2",
- "ircmaxell/password-compat": "1.0.*",
- "monolog/monolog": "~1.3",
- "ocramius/proxy-manager": ">=0.3.1,<0.6-dev",
- "propel/propel1": "1.6.*"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.5-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Symfony\\": "src/"
- },
- "classmap": [
- "src/Symfony/Component/HttpFoundation/Resources/stubs",
- "src/Symfony/Component/Intl/Resources/stubs"
- ],
- "files": [
- "src/Symfony/Component/Intl/Resources/stubs/functions.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Symfony Community",
- "homepage": "http://symfony.com/contributors"
- },
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- }
- ],
- "description": "The Symfony PHP framework",
- "homepage": "http://symfony.com",
- "keywords": [
- "framework"
- ],
- "time": "2014-10-24 06:55:39"
- },
- {
- "name": "twig/extensions",
- "version": "v1.2.0",
- "source": {
- "type": "git",
- "url": "https://github.com/twigphp/Twig-extensions.git",
- "reference": "8cf4b9fe04077bd54fc73f4fde83347040c3b8cd"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/twigphp/Twig-extensions/zipball/8cf4b9fe04077bd54fc73f4fde83347040c3b8cd",
- "reference": "8cf4b9fe04077bd54fc73f4fde83347040c3b8cd",
- "shasum": ""
- },
- "require": {
- "twig/twig": "~1.12"
- },
- "require-dev": {
- "symfony/translation": "~2.3"
- },
- "suggest": {
- "symfony/translation": "Allow the time_diff output to be translated"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.2.x-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Twig_Extensions_": "lib/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- }
- ],
- "description": "Common additional features for Twig that do not directly belong in core",
- "homepage": "http://twig.sensiolabs.org/doc/extensions/index.html",
- "keywords": [
- "i18n",
- "text"
- ],
- "time": "2014-10-30 14:30:03"
- },
- {
- "name": "twig/twig",
- "version": "v1.16.2",
- "source": {
- "type": "git",
- "url": "https://github.com/fabpot/Twig.git",
- "reference": "42f758d9fe2146d1f0470604fc05ee43580873fc"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/fabpot/Twig/zipball/42f758d9fe2146d1f0470604fc05ee43580873fc",
- "reference": "42f758d9fe2146d1f0470604fc05ee43580873fc",
- "shasum": ""
- },
- "require": {
- "php": ">=5.2.4"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.16-dev"
- }
- },
- "autoload": {
- "psr-0": {
- "Twig_": "lib/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com",
- "homepage": "http://fabien.potencier.org",
- "role": "Lead Developer"
- },
- {
- "name": "Armin Ronacher",
- "email": "armin.ronacher@active-4.com",
- "role": "Project Founder"
- },
- {
- "name": "Twig Team",
- "homepage": "https://github.com/fabpot/Twig/graphs/contributors",
- "role": "Contributors"
- }
- ],
- "description": "Twig, the flexible, fast, and secure template language for PHP",
- "homepage": "http://twig.sensiolabs.org",
- "keywords": [
- "templating"
- ],
- "time": "2014-10-17 12:53:44"
- }
- ],
- "packages-dev": [],
- "aliases": [],
- "minimum-stability": "stable",
- "stability-flags": {
- "doctrine/orm": 20,
- "doctrine/dbal": 20,
- "doctrine/doctrine-bundle": 20
- },
- "prefer-stable": false,
- "platform": {
- "php": "~5.5"
- },
- "platform-dev": []
-}
diff --git a/src/Chill/CustomFieldsBundle/console.sh b/src/Chill/CustomFieldsBundle/console.sh
deleted file mode 100755
index c2d0ec406..000000000
--- a/src/Chill/CustomFieldsBundle/console.sh
+++ /dev/null
@@ -1 +0,0 @@
-php Tests/Fixtures/App/app/console.php $1 $2 $3 $4 $5
diff --git a/src/Chill/CustomFieldsBundle/phpunit.xml.dist b/src/Chill/CustomFieldsBundle/phpunit.xml.dist
deleted file mode 100644
index 86c84517a..000000000
--- a/src/Chill/CustomFieldsBundle/phpunit.xml.dist
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
-
-
- ./Tests
-
-
-
-
- ./
-
- ./Resources
- ./Tests
- ./vendor
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/Chill/CustomFieldsBundle/run-server.sh b/src/Chill/CustomFieldsBundle/run-server.sh
deleted file mode 100755
index e12b22a86..000000000
--- a/src/Chill/CustomFieldsBundle/run-server.sh
+++ /dev/null
@@ -1 +0,0 @@
-php Tests/Fixtures/App/app/console.php server:run --docroot=Tests/Fixtures/App/web/