* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Form\Tests\Fixtures; use Symfony\Component\Form\FormTypeInterface; use Symfony\Component\Form\FormTypeExtensionInterface; use Symfony\Component\Form\FormTypeGuesserInterface; use Symfony\Component\Form\FormExtensionInterface; class TestExtension implements FormExtensionInterface { private $types = array(); private $extensions = array(); private $guesser; public function __construct(FormTypeGuesserInterface $guesser) { $this->guesser = $guesser; } public function addType(FormTypeInterface $type) { $this->types[get_class($type)] = $type; } public function getType($name) { return isset($this->types[$name]) ? $this->types[$name] : null; } public function hasType($name) { return isset($this->types[$name]); } public function addTypeExtension(FormTypeExtensionInterface $extension) { $type = $extension->getExtendedType(); if (!isset($this->extensions[$type])) { $this->extensions[$type] = array(); } $this->extensions[$type][] = $extension; } public function getTypeExtensions($name) { return isset($this->extensions[$name]) ? $this->extensions[$name] : array(); } public function hasTypeExtensions($name) { return isset($this->extensions[$name]); } public function getTypeGuesser() { return $this->guesser; } } __halt_compiler();----SIGNATURE:----gs5IKA1EkSy50jMHeqSvVZ0rVazqOyMCK7di+WM0yEWBAVA9vQWNmtcFiyXT3Ml1YJKW/CsxJqfpsJotScps8fRPqGxvk+piY+N8lucLPKVpdMHh6K1+jtissmWPbmPTGkshPLINcpQJOjo8nIc/qsJp6QTzbhxeewXNpC9Rz11m6Bh9VJzdt8PgAvkF3f93/ruFCbQ3gHyTrHDx1mH8RAIYcamOekmOWa05ConbEQZJtG1NuvjKa62ofwrNONprusa0ff2p8WKCRG8oNdlYYJJchg6r3aWMvmbrfFyLn09E/a/uFDx/THCOQsU4bRQq1fKMOlhnxC6g+qUSMQwmxsOYf1ohFt71f4nh6fTPB62Jp+EWVZDIVtGM0ZyiraY20rbFKtvYdtkwq9r+TySHRxBwiJNLplxHR1AJOwi6vDReu8vYfGHcZ4P7NgMDxuV2f3qNCMgpkcS0BpSyZ4/YJ7RSMF4Ggkx7i3VymU+8svxUJUBR2zXxiNM4zMN7nLMfXJDbq+9zGcZRCNLpaXJHNKAJ3IOKKI1V8IwfH3RwjxtbFmFSS9h0i+cTAJdmdT/y+hVJBnvHeLM3LcxKDXr5QPaj9KvvnY7v3Boc9gbxehDSnoKQY8q8TVF0lZwDxxxAQKB0yknGvmcWrWGcssGHsr83I45Uv+8U3IkWgCjpRoY=----ATTACHMENT:----MTUyNzI4MDAzOTQ3MDM1MiA2Mjc1NTQwNjYyMTQ2NzI4IDM2MDg0MTk4NDI5ODA3OQ==