This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @param FormInterface $form | |
* @return string | |
*/ | |
private function transformFormToText(FormInterface $form) | |
{ | |
$txt = ''; | |
foreach ($form->getData() as $inputName => $inputValue) { | |
$formElement = $form->get($inputName); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace ServicePlus\CoreBundle\Service; | |
use Doctrine\ORM\EntityManager; | |
use Doctrine\ORM\EntityNotFoundException; | |
use ServicePlus\CoreBundle\Entity\Company; | |
use ServicePlus\CoreBundle\Entity\Device; | |
use ServicePlus\CoreBundle\Entity\Report; | |
use Symfony\Component\EventDispatcher\EventDispatcher; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Ceva\CoreBundle\Listener; | |
use Symfony\Component\HttpKernel\Event\GetResponseEvent; | |
use Symfony\Component\HttpKernel\KernelEvents; | |
use Symfony\Component\EventDispatcher\EventSubscriberInterface; | |
use Symfony\Component\HttpFoundation\RedirectResponse; | |
use Symfony\Component\HttpFoundation\Cookie; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function createAction(Request $request, $package_id) | |
{ | |
$package = $this->getPackage($package_id); | |
$entity = new Prestation(); | |
$entity->setPackage($package); | |
$form = $this->createCreateForm($entity); | |
$form->handleRequest($request); |