Exemple #1
0
 /**
  * @param string                       $scope
  * @param ConfigDefinitionImmutableBag $configDefinition
  * @param EventDispatcherInterface     $eventDispatcher
  * @param ConfigValueBag               $valueBag
  */
 public function __construct($scope, ConfigDefinitionImmutableBag $configDefinition, EventDispatcherInterface $eventDispatcher, ConfigValueBag $valueBag)
 {
     $this->scope = $scope;
     $this->settings = $configDefinition->all();
     $this->eventDispatcher = $eventDispatcher;
     $this->localCache = $valueBag;
 }
Exemple #2
0
 /**
  * @param ConfigDefinitionImmutableBag $configDefinition
  * @param EventDispatcher              $eventDispatcher
  */
 public function __construct(ConfigDefinitionImmutableBag $configDefinition, EventDispatcher $eventDispatcher)
 {
     $this->settings = $configDefinition->all();
     $this->eventDispatcher = $eventDispatcher;
 }
Exemple #3
0
 /**
  * @param EventDispatcher              $eventDispatcher
  * @param ObjectManager                $om
  * @param ConfigDefinitionImmutableBag $configDefinition
  */
 public function __construct(EventDispatcher $eventDispatcher, ObjectManager $om, ConfigDefinitionImmutableBag $configDefinition)
 {
     $this->eventDispatcher = $eventDispatcher;
     $this->om = $om;
     $this->settings = $configDefinition->all();
 }