I hereby claim:
- I am B-Galati on github.
- I am bgalati (https://keybase.io/bgalati) on keybase.
- I have a public key whose fingerprint is B675 6E4A F33E 081D AB03 719C D8F2 5183 44D9 921B
To claim this, I am signing this object:
#!/usr/bin/env bash | |
# | |
# A lot of inspiration comes directly from symfony cli installer | |
set -euo pipefail | |
ROOT_PATH=$( | |
set -e | |
cd "$(dirname "${BASH_SOURCE[0]}")" | |
pwd |
#!/usr/bin/env bash | |
set -euo pipefail | |
ROOT_PATH=$(set -e && cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) | |
cd "${ROOT_PATH}" | |
# Taken from Symfony installer | |
function output | |
{ |
I hereby claim:
To claim this, I am signing this object:
DOCKER_COMPOSE?=docker-compose | |
DOCKER_FILES=$(shell find ./docker/dev/ -type f -name '*') | |
.DEFAULT_GOAL := help | |
.PHONY: help | |
help: | |
@grep -E '(^[a-zA-Z_-]+:.*?##.*$$)|(^##)' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}' | sed -e 's/\[32m##/[33m/' | |
## |
<?php | |
use AppBundle\DataFixtures\ORM\LoadAdherentData; | |
use AppBundle\Entity\Adherent; | |
use AppBundle\Entity\Administrator; | |
use AppBundle\Repository\AdherentRepository; | |
use AppBundle\Repository\AdministratorRepository; | |
use Behat\Mink\Driver\Selenium2Driver; | |
use Behat\MinkExtension\Context\RawMinkContext; | |
use Behat\Symfony2Extension\Context\KernelDictionary; |
<?php | |
namespace App\Normalizer; | |
use App\Entity\User; | |
use Ramsey\Uuid\Uuid; | |
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface; | |
class UserNormalizer implements DenormalizerInterface | |
{ |
<?php | |
use Behat\Gherkin\Node\TableNode; | |
use Behat\MinkExtension\Context\RawMinkContext; | |
use Behat\Symfony2Extension\Context\KernelDictionary; | |
use Doctrine\Common\DataFixtures\Executor\ORMExecutor; | |
use Doctrine\Common\DataFixtures\Purger\ORMPurger; | |
use Doctrine\ORM\EntityManager; | |
use Symfony\Bridge\Doctrine\DataFixtures\ContainerAwareLoader; |
<?php | |
use AppBundle\Command\ListUsersCommand; | |
use AppBundle\EventListener\CommentNotificationSubscriber; | |
use AppBundle\EventListener\RedirectToPreferredLocaleSubscriber; | |
use AppBundle\Twig\AppExtension; | |
use AppBundle\Utils\Slugger; | |
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; | |
use Twig\Extensions\IntlExtension; |
<?php | |
$finder = PhpCsFixer\Finder::create() | |
->in(__DIR__.'/src') | |
->in(__DIR__.'/tests') | |
->exclude(__DIR__.'app/data') | |
; | |
return PhpCsFixer\Config::create() | |
->setRiskyAllowed(true) |
.PHONY: help clean build vendor node_modules test php-cs-fixer | |
SYMFONY_ENV ?= dev | |
SYMFONY_CONSOLE_ARGS ?= --env=dev | |
SYMFONY_ASSETS_INSTALL ?= relative | |
COMPOSER_ARGS ?= | |
PHP=php | |
ifneq ($(SYMFONY_ENV), dev) | |
COMPOSER_ARG = --optimize-autoloader --no-dev --no-suggest --no-interaction --classmap-authoritative |