芝麻web文件管理V1.00
编辑当前文件:/home/mybf1/www/pati.bf1.my/wp-content/plugins/spotlight-social-photo-feeds/src/core/Plugin.php
pluginFile = $pluginFile; // Create the core module $this->coreModule = new CoreModule($pluginFile, $this->loadModules()); // Create the container $this->container = new Container(['spotlight/instagram/', static::FILTER . '/'], $this->coreModule->getFactories(), $this->coreModule->getExtensions() ); } /** * @inheritDoc * * @since 0.3.2 */ public function get($id) { return $this->container->get($id); } /** * @inheritDoc * * @since 0.3.2 */ public function has($id): bool { return $this->container->has($id); } /** * Loads the modules. * * @since 0.2 */ protected function loadModules(): array { $rootDir = dirname($this->pluginFile); $modules = require "$rootDir/modules.all.php"; return Arrays::map($modules, function ($module, $key) { return new PrefixingModule("$key/", $module); }); } /** * Runs the plugin. * * @since 0.2 */ public function run() { $this->coreModule->run($this->container); } }