Sylius\Bundle\ResourceBundle\Form\Type\ResourceChoiceType::__construct PHP Method

__construct() public method

public __construct ( Sylius\Component\Resource\Metadata\MetadataInterface $metadata )
$metadata Sylius\Component\Resource\Metadata\MetadataInterface
    public function __construct(MetadataInterface $metadata)
    {
        $this->metadata = $metadata;
    }

Usage Example

 /**
  * @param string                   $className
  * @param string                   $driver
  * @param string                   $name
  * @param ServiceRegistryInterface $feeCalculatorRegistry
  * @param RepositoryInterface      $paymentRepository
  */
 public function __construct($className, $driver, $name, ServiceRegistryInterface $feeCalculatorRegistry, RepositoryInterface $paymentRepository)
 {
     parent::__construct($className, $driver, $name);
     $this->feeCalculatorRegistry = $feeCalculatorRegistry;
     $this->paymentRepository = $paymentRepository;
 }