Skip to content

Instantly share code, notes, and snippets.

@Raistlfiren
Created February 17, 2016 15:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Raistlfiren/9e0b1a7b755c52bb7afc to your computer and use it in GitHub Desktop.
Save Raistlfiren/9e0b1a7b755c52bb7afc to your computer and use it in GitHub Desktop.
<?php
protected function setUp()
{
$this->factory = Forms::createFormFactoryBuilder()
->addExtensions($this->getExtensions())
->addTypeExtension(new AutoCompleteExtension())
->getFormFactory();
$this->dispatcher = $this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface');
$this->builder = new FormBuilder(null, null, $this->dispatcher, $this->factory);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment