当前位置: 首页>>代码示例>>PHP>>正文


PHP AbstractResourceType::__construct方法代码示例

本文整理汇总了PHP中Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP AbstractResourceType::__construct方法的具体用法?PHP AbstractResourceType::__construct怎么用?PHP AbstractResourceType::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType的用法示例。


在下文中一共展示了AbstractResourceType::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * @param string $dataClass
  * @param array $validationGroups
  * @param string $attributeChoiceType
  * @param RepositoryInterface $attributeRepository
  * @param FormTypeRegistryInterface $formTypeTypeRegistry
  */
 public function __construct($dataClass, array $validationGroups, $attributeChoiceType, RepositoryInterface $attributeRepository, FormTypeRegistryInterface $formTypeTypeRegistry)
 {
     parent::__construct($dataClass, $validationGroups);
     $this->attributeChoiceType = $attributeChoiceType;
     $this->attributeRepository = $attributeRepository;
     $this->formTypeRegistry = $formTypeTypeRegistry;
 }
开发者ID:sylius,项目名称:sylius,代码行数:14,代码来源:AttributeValueType.php

示例2: __construct

 /**
  * @param string $dataClass
  * @param array $validationGroups
  * @param ServiceRegistryInterface $calculatorRegistry
  * @param ServiceRegistryInterface $checkerRegistry
  * @param FormRegistryInterface $formRegistry
  */
 public function __construct($dataClass, array $validationGroups, ServiceRegistryInterface $calculatorRegistry, ServiceRegistryInterface $checkerRegistry, FormRegistryInterface $formRegistry)
 {
     parent::__construct($dataClass, $validationGroups);
     $this->calculatorRegistry = $calculatorRegistry;
     $this->checkerRegistry = $checkerRegistry;
     $this->formRegistry = $formRegistry;
 }
开发者ID:TheMadeleine,项目名称:Sylius,代码行数:14,代码来源:ShippingMethodType.php

示例3: __construct

 /**
  * @param string $dataClass
  * @param array $validationGroups
  * @param string $shippingMethodTranslationType
  * @param ServiceRegistryInterface $calculatorRegistry
  * @param ServiceRegistryInterface $checkerRegistry
  * @param FormTypeRegistryInterface $formTypeRegistry
  * @param EventSubscriberInterface $buildShippingMethodFormSubscriber
  */
 public function __construct($dataClass, array $validationGroups, $shippingMethodTranslationType, ServiceRegistryInterface $calculatorRegistry, ServiceRegistryInterface $checkerRegistry, FormTypeRegistryInterface $formTypeRegistry, EventSubscriberInterface $buildShippingMethodFormSubscriber)
 {
     parent::__construct($dataClass, $validationGroups);
     $this->shippingMethodTranslationType = $shippingMethodTranslationType;
     $this->calculatorRegistry = $calculatorRegistry;
     $this->checkerRegistry = $checkerRegistry;
     $this->formTypeRegistry = $formTypeRegistry;
     $this->buildShippingMethodFormSubscriber = $buildShippingMethodFormSubscriber;
 }
开发者ID:sylius,项目名称:sylius,代码行数:18,代码来源:ShippingMethodType.php

示例4: __construct

 /**
  * Constructor.
  *
  * @param string                   $dataClass
  * @param string[]                 $validationGroups
  * @param EventSubscriberInterface $eventListener
  */
 public function __construct($dataClass, array $validationGroups, EventSubscriberInterface $eventListener)
 {
     parent::__construct($dataClass, $validationGroups);
     $this->eventListener = $eventListener;
 }
开发者ID:nanyi,项目名称:Sylius,代码行数:12,代码来源:AddressType.php

示例5: __construct

 /**
  * @param string $dataClass
  * @param array $validationGroups
  * @param DataMapperInterface $orderItemQuantityDataMapper
  */
 public function __construct($dataClass, array $validationGroups = [], DataMapperInterface $orderItemQuantityDataMapper)
 {
     parent::__construct($dataClass, $validationGroups);
     $this->orderItemQuantityDataMapper = $orderItemQuantityDataMapper;
 }
开发者ID:loic425,项目名称:Sylius,代码行数:10,代码来源:CartItemType.php

示例6: __construct

 /**
  * @param ServiceRegistryInterface $rendererRegistry
  * @param ServiceRegistryInterface $dataFetcherRegistry
  */
 public function __construct($dataClass, array $validationGroups, ServiceRegistryInterface $rendererRegistry, ServiceRegistryInterface $dataFetcherRegistry)
 {
     parent::__construct($dataClass, $validationGroups);
     $this->rendererRegistry = $rendererRegistry;
     $this->dataFetcherRegistry = $dataFetcherRegistry;
 }
开发者ID:vikey89,项目名称:Sylius,代码行数:10,代码来源:ReportType.php

示例7: __construct

 /**
  * {@inheritdoc}
  *
  * @param RepositoryInterface $countryRepository
  */
 public function __construct($dataClass, array $validationGroups = array(), RepositoryInterface $countryRepository)
 {
     $this->countryRepository = $countryRepository;
     parent::__construct($dataClass, $validationGroups);
 }
开发者ID:aleherse,项目名称:Sylius,代码行数:10,代码来源:CountryType.php

示例8: __construct

 /**
  * Constructor.
  *
  * @param string                       $dataClass
  * @param array                        $validationGroups
  * @param CalculatorRegistryInterface  $calculatorRegistry
  * @param RuleCheckerRegistryInterface $checkerRegistry
  */
 public function __construct($dataClass, array $validationGroups, CalculatorRegistryInterface $calculatorRegistry, RuleCheckerRegistryInterface $checkerRegistry)
 {
     parent::__construct($dataClass, $validationGroups);
     $this->calculatorRegistry = $calculatorRegistry;
     $this->checkerRegistry = $checkerRegistry;
 }
开发者ID:Strontium-90,项目名称:Sylius,代码行数:14,代码来源:ShippingMethodType.php

示例9: __construct

 /**
  * @param string $dataClass
  * @param string[] $validationGroups
  * @param EventSubscriberInterface $buildAddressFormSubscriber
  */
 public function __construct($dataClass, array $validationGroups, EventSubscriberInterface $buildAddressFormSubscriber)
 {
     parent::__construct($dataClass, $validationGroups);
     $this->buildAddressFormSubscriber = $buildAddressFormSubscriber;
 }
开发者ID:sylius,项目名称:sylius,代码行数:10,代码来源:AddressType.php

示例10: __construct

 public function __construct($dataClass, ServiceRegistryInterface $registry)
 {
     parent::__construct($dataClass, ['Default']);
     $this->registry = $registry;
 }
开发者ID:ReissClothing,项目名称:Sylius,代码行数:5,代码来源:AbstractConfigurationType.php

示例11: __construct

 /**
  * @param string $dataClass
  * @param string[] $validationGroups
  * @param ProductVariantResolverInterface $variantResolver
  */
 public function __construct($dataClass, $validationGroups, ProductVariantResolverInterface $variantResolver)
 {
     parent::__construct($dataClass, $validationGroups);
     $this->variantResolver = $variantResolver;
 }
开发者ID:sylius,项目名称:sylius,代码行数:10,代码来源:ProductType.php

示例12: __construct

 /**
  * {@inheritdoc}
  *
  * @var DynamicFormBuilderInterface
  */
 public function __construct($dataClass, array $validationGroups = [], DynamicFormBuilderInterface $dynamicFormBuilder)
 {
     parent::__construct($dataClass, $validationGroups);
     $this->dynamicFormBuilder = $dynamicFormBuilder;
 }
开发者ID:ahmadrabie,项目名称:Sylius,代码行数:10,代码来源:PageMetadataType.php

示例13: __construct

 public function __construct($dataClass, $securityContext, array $validationGroups = array())
 {
     parent::__construct($dataClass, $validationGroups);
     $this->securityContext = $securityContext;
 }
开发者ID:odiseoteam,项目名称:odiseo-team-website,代码行数:5,代码来源:ProjectFormType.php

示例14: __construct

 /**
  * @param string              $dataClass
  * @param array               $validationGroups
  * @param RepositoryInterface $customerRepository
  */
 public function __construct($dataClass, array $validationGroups, RepositoryInterface $customerRepository)
 {
     parent::__construct($dataClass, $validationGroups);
     $this->customerRepository = $customerRepository;
 }
开发者ID:ReissClothing,项目名称:Sylius,代码行数:10,代码来源:CustomerSimpleRegistrationType.php

示例15: __construct

 /**
  * @param string $dataClass
  * @param string[] $validationGroups
  * @param EventSubscriberInterface $generateProductVariants
  */
 public function __construct($dataClass, $validationGroups, EventSubscriberInterface $generateProductVariants)
 {
     parent::__construct($dataClass, $validationGroups);
     $this->generateProductVariantsSubscriber = $generateProductVariants;
 }
开发者ID:sylius,项目名称:sylius,代码行数:10,代码来源:ProductGenerateVariantsType.php


注:本文中的Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。