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
{% block subject %}Onderwerp{% endblock %} | |
{% block body_text %} | |
{% autoescape false %} | |
Email content | |
{% include 'xxxBundle:Email:footer.email.html.twig' %} | |
{% endautoescape %} | |
{% endblock %} |
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
#!/bin/bash | |
# Remove bundle files | |
rm -rf src/Acme | |
sed -i '/AcmeDemoBundle/,+2 d' app/config/routing_dev.yml | |
sed -i '/AcmeDemoBundle/d' app/AppKernel.php | |
rm -rf web/bundles/acmedemo | |
# Remove the base template | |
rm -rf app/Resources/ |
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 xxx\AppBundle\Model\User\Search; | |
class UserSearch implements \ArrayAccess, \IteratorAggregate, \Countable | |
{ | |
private $data = []; | |
public function &__get ($key) |
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
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then | |
export TERM=gnome-256color | |
elif infocmp xterm-256color >/dev/null 2>&1; then | |
export TERM=xterm-256color | |
fi | |
if tput setaf 1 &> /dev/null; then | |
tput sgr0 | |
if [[ $(tput colors) -ge 256 ]] 2>/dev/null; then | |
MAGENTA=$(tput setaf 9) |
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 XXX\; | |
use Behat\Behat\Context\BehatContext, | |
Behat\Gherkin\Node\TableNode; | |
class FakerContext extends BehatContext | |
{ | |
const GENERATE_TEST_DATA_REGEX = '~\[([$a-zA-Z0-9]+)=([a-zA-Z]+)(\(([0-9]+)\))?\]~'; |
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
/** | |
* @Route("/validator", name="route_name") | |
*/ | |
public function validationAction(Request $request) | |
{ | |
$object = new typeOfObject(); | |
$form = $this->container->get('form.factory')->create(new ObjectFormType(), $object); | |
$form->submit($request); | |
$violations = $this->container->get('validator')->validate($object); |
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
$errors = $this->get('validator')->validate($user, array('user')); | |
foreach ($errors as $error) { | |
$form->get($error->getPropertyPath())->addError(new FormError($error->getMessage())); | |
} |
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 | |
public function testWebdriver($args = '', $opt = ['test|t' => null]) | |
{ | |
$test = $opt['test'] ? ':'.$opt['test'] : ''; | |
$container = $this->taskDockerRun('davert/selenium-env') | |
->detached() | |
->publish(4444,4444) | |
->env('APP_PORT', 8000) | |
->run(); |
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
{ | |
"in_process_packages": | |
[ | |
], | |
"installed_packages": | |
[ | |
"Alignment", | |
"AndyPHP", | |
"Behat Features", | |
"GitGutter", |