Ejemplo n.º 1
0
 /**
  * @param PreBuild $event
  */
 public function onPreBuild(PreBuild $event)
 {
     $parameters = $event->getParameters();
     $config = $event->getConfig();
     if (!$this->isApplicable($config, $parameters)) {
         return;
     }
     $gridName = $config->getName();
     $mixins = $this->getMixins($config, $parameters);
     foreach ($mixins as $mixin) {
         if (empty($this->appliedFor[$gridName . $mixin])) {
             $this->mixinConfigurationHelper->extendConfiguration($config, $mixin);
             $this->appliedFor[$gridName . $mixin] = true;
         }
     }
 }
 /**
  * @dataProvider mergeDataProvider
  *
  * @param array $expected
  * @param array $first
  * @param array $second
  */
 public function testArrayMergeRecursiveDistinct(array $expected, array $first, array $second)
 {
     $this->assertEquals($expected, MixinConfigurationHelper::arrayMergeRecursiveAppendDistinct($first, $second));
 }