This file contains 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 App\Security\Authenticator; | |
use Symfony\Component\HttpFoundation\JsonResponse; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpFoundation\Response; | |
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; | |
use Symfony\Component\Security\Core\Exception\AuthenticationException; | |
use Symfony\Component\Security\Core\Exception\CustomUserMessageAuthenticationException; |
This file contains 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 App\Mailer; | |
use League\HTMLToMarkdown\HtmlConverter; | |
use Symfony\Component\Mime\BodyRendererInterface; | |
use Symfony\Component\Mime\Exception\InvalidArgumentException; | |
use Symfony\Component\Mime\Message; | |
use Twig\Environment; | |
use Symfony\Bridge\Twig\Mime\WrappedTemplatedEmail; |
This file contains 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 App\Doctrine; | |
use Doctrine\ORM\Id\AbstractIdGenerator; | |
use Doctrine\ORM\EntityManager; | |
/** | |
* Class used to generate ids using base64 strings | |
* like youtube videos id for example |
This file contains 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 App\Controller; | |
use Symfony\Component\HttpFoundation\Request; | |
class RegistrationController | |
{ | |
public function registerAction(Request $request) |
This file contains 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
// Remplace 7.0 by the version number you want | |
curl -s http://php-osx.liip.ch/install.sh | bash -s 7.0 | |
export PATH=/usr/local/php5/bin:$PATH |