'flex', 'directory' => $this->getFlexDirectory(), 'collection' => $this ]); } if (strpos($name, 'onFlexCollection') !== 0 && strpos($name, 'on') === 0) { $name = 'onFlexCollection' . substr($name, 2); } $container = $this->getContainer(); if ($event instanceof Event) { $container->fireEvent($name, $event); } else { $container->dispatchEvent($event); } return $this; } }