Skip to content

Instantly share code, notes, and snippets.


Sebastian zebba

View GitHub Profile
View Configuration.php
* @inheritDoc
public function getConfigTreeBuilder()
$treebuilder = new TreeBuilder();
$rootNode = $treebuilder->root('');
View IssueSelectorType.php
namespace Acme\TaskBundle\Form\Type;
use Acme\TaskBundle\Form\DataTransformer\IssueToNumberTransformerFactory;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class IssueSelectorType extends AbstractType
zebba / behat.yml
Created Apr 21, 2015
Behat and Symfony2
View behat.yml
Behat\Symfony2Extension: ~
View config.yml
#driver: "%database.driver%"
driver: "%database.driver%" # this does not work
host: "%database_host%"
port: "%database_port%"
dbname: "%database_name%"
user: "%database_user%"
password: "%database_password%"
charset: UTF8
View Bundle.php
namespace Acme\FooBundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class FooDavBundle extends Bundle
zebba / Entity\Foo.php
Last active Aug 29, 2015
Flexible and secure fromArray implementation
View Entity\Foo.php
// ...
class Foo
// ...
static public function fromArray(array $data)
You can’t perform that action at this time.