Вход Регистрация
Файл: symfony-2.7/src/Symfony/Component/Form/AbstractTypeExtension.php
Строк: 65
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace SymfonyComponentForm;

use 
SymfonyComponentOptionsResolverOptionsResolver;
use 
SymfonyComponentOptionsResolverOptionsResolverInterface;

/**
 * @author Bernhard Schussek <bschussek@gmail.com>
 */
abstract class AbstractTypeExtension implements FormTypeExtensionInterface
{
    
/**
     * {@inheritdoc}
     */
    
public function buildForm(FormBuilderInterface $builder, array $options)
    {
    }

    
/**
     * {@inheritdoc}
     */
    
public function buildView(FormView $viewFormInterface $form, array $options)
    {
    }

    
/**
     * {@inheritdoc}
     */
    
public function finishView(FormView $viewFormInterface $form, array $options)
    {
    }

    
/**
     * {@inheritdoc}
     */
    
public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        
$this->configureOptions($resolver);
    }

    
/**
     * Configures the options for this type.
     *
     * @param OptionsResolver $resolver The resolver for the options.
     */
    
public function configureOptions(OptionsResolver $resolver)
    {
    }
}
Онлайн: 1
Реклама