* * 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:----vI46RPxFlVCBnFBROgjyEdd5p8ylLeXrdXFKl7Cb2W8EwXle6ikKECOI+8SlVsfTniZwuqDm3g7dWGsj2ppZwrsLkTrLLZxvLJIdJxArUf4/ZNFzDVu3fV24TDyPMN1os68FrVXEtuo/V9Tv5g0x0dZ+Gavp4HURCzcG18H/0R6vX6Dzd5LWAtpDlTOk9mLT+e/iWvsWzUw1tEjP9ijuEWBBPFKuX2TgKRsKy1T4Ls3nfuAoEKdCfPLf/Cc3KwvOlU4r5Ri3NaSrcUnpIXM+d55u1GvlVU+niCGdrTuqLS+dGZpII+43ej747A6vi+RkVYMQLTCmb3giJWzb1nBPgmAwcK808yuc6VIxMWXm6npZkk3xTMgNiIVTJz8KWLgGC277D8muIIYIB7Vm5tBIDZegQlXUrATSSZhc5sCXg36wip+9ZdkZ7NC7kdU3GpUDlWxWJajtgLuavh84QtWRieaxwa/9mXHV20zoCM2Gd195MJc0MUDDCmzAZd4mdej8iuOJNa1nbbvLykFB6VVqqLepH8FsvZUKQeZ7en54UiOV/O7rT/oZP+vFFvPOpRsNpOL+35YTTqEudWLIYhoJep7fG5XCj9q/j9r6RvOpuv9UpzBg1mRfrQX4aDtmiu7arza7Wc2yLkvG4ZN8JBp9QyUqjoOKS4CK/j5NIjHk9Gw=----ATTACHMENT:----OTI5MTI5MzE5ODAzOTExMiA4NDM0MjM5OTc1NzM4MTA4IDkwNzI1ODc5ODk2ODI1MDM=