WellCommerce\Bundle\CoreBundle\Form\AbstractFormBuilder::initService PHP Method

initService() protected method

Initializes a service by its type
protected initService ( string $type, string $alias, array $options ) : object
$type string
$alias string
$options array
return object
    protected function initService(string $type, string $alias, array $options)
    {
        $id = $this->resolverFactory->resolve($type, $alias);
        $service = $this->get($id);
        $service->setOptions($options);
        return $service;
    }