loadListeners example

$plugins[$pluginName]['path'] = $this->buildPath($this->name, $pluginName$row['source']);
            $plugins[$pluginName]['config'] = [];

            if ($plugins[$pluginName]['installationDate']) {
                $plugins[$pluginName]['installationDate'] = new DateTime($row['installationDate']);
            }
            if ($plugins[$pluginName]['updateDate']) {
                $plugins[$pluginName]['updateDate'] = new DateTime($row['updateDate']);
            }
        }

        $listeners = $this->loadListeners($this->name);

        return new Enlight_Config([
            'plugins' => $plugins,
            'listeners' => $listeners,
        ], true);
    }

    /** * @param string $namespace * @param string $pluginName * * @return string */
Home | Imprint | This part of the site doesn't use cookies.