Eccube\Tests\Form\Type\TelTypeTest::createApplication PHP Method

createApplication() public method

public createApplication ( )
    public function createApplication()
    {
        $app = new \Silex\Application();
        $app->register(new \Silex\Provider\FormServiceProvider());
        $app->register(new \Eccube\ServiceProvider\ValidatorServiceProvider());
        $app['eccube.service.plugin'] = $app->share(function () use($app) {
            return new \Eccube\Service\PluginService($app);
        });
        // fix php5.3
        $self = $this;
        $app['form.types'] = $app->share($app->extend('form.types', function ($types) use($app, $self) {
            $types[] = new \Eccube\Form\Type\TelType($self->config);
            return $types;
        }));
        return $app;
    }