| gitflow | git |
|---|---|
git flow init |
git init |
git commit --allow-empty -m "Initial commit" |
|
git checkout -b develop master |
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 Email\EmailBundle\Controller; | |
| use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
| use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | |
| use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; | |
| use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; | |
| use Symfony\Component\HttpFoundation\Request; | |
| use FOS\RestBundle\View\View; |
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
| public function getIdByEmail($sEmail) | |
| { | |
| $aResult = $this->getEntityManager() | |
| ->createQuery("SELECT user.id FROM EducationBaseBundle:User user WHERE user.mail = :mail") | |
| ->setParameter('mail', $sEmail) | |
| ->getOneOrNullResult(); | |
| if (isset($aResult['id'])) { | |
| return $aResult['id']; | |
| } | |
| return 0; |
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
| return $this->get('fos_rest.view_handler') | |
| ->handle( | |
| View::create() | |
| ->setStatusCode(200) | |
| ->setData(array( | |
| 'id'=> $oUserRepo->getIdByEmail($userMail), | |
| 'userEmail' => $userMail | |
| )) | |
| ); |
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
| { | |
| "name": "spakkionu/validate", | |
| "description": "Validation Test", | |
| "require": { | |
| "illuminate/validation": "~4.2.9" | |
| }, | |
| "license": "MIT", | |
| "authors": [ | |
| { | |
| "name": "Jonathan Bernardi", |
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
| {% extends layout %} | |
| {% block body %} | |
| <div id="main"> | |
| <h2>Contact me</h2> | |
| <p>For queries about anything on this website, or for job quotations, please contact me using the contact form below or via <a href="mailto:[email protected]">email</a>.</p> | |
| <form action="#" method="post"> | |
| {{ form_start(form) }} | |
| {{ form_errors(form) }} |
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
| <script> | |
| $(document).ready(function () { | |
| var formErrors = ''; | |
| if(formErrors) { | |
| scrollToTitle(); | |
| } | |
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 PRIA\QuizApiBundle\Command; | |
| use PRIA\Bundle\UserBundle\EntityRepository\RoundsRepository; | |
| use PRIA\QuizApiBundle\Entity\Answers; | |
| use PRIA\QuizApiBundle\Entity\Questions; | |
| use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; | |
| use Symfony\Component\Console\Command\Command; | |
| use Symfony\Component\Console\Input\InputArgument; |
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 AppBundle\Command; | |
| use Symfony\Component\Console\Command\Command; | |
| use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; | |
| use Symfony\Component\Console\Input\InputArgument; | |
| use Symfony\Component\Console\Input\InputInterface; | |
| use Symfony\Component\Console\Input\InputOption; |
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 AppBundle\Command; | |
| use Symfony\Component\Console\Command\Command; | |
| use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; | |
| use Symfony\Component\Console\Input\InputArgument; | |
| use Symfony\Component\Console\Input\InputInterface; | |
| use Symfony\Component\Console\Input\InputOption; |