uawdijnntqw1x1x1
IP : 52.14.45.84
Hostname : ns1.eurodns.top
Kernel : Linux ns1.eurodns.top 4.18.0-553.5.1.lve.1.el7h.x86_64 #1 SMP Fri Jun 14 14:24:52 UTC 2024 x86_64
Disable Function : mail,sendmail,exec,passthru,shell_exec,system,popen,curl_multi_exec,show_source,eval,open_base
OS : Linux
PATH:
/
home
/
sudancam
/
.
/
.
/
www
/
wp-content
/
plugins
/
wp-rss-aggregator
/
src
/
ModularModule.php
/
/
<?php namespace RebelCode\Wpra\Core; use Psr\Container\ContainerInterface; use RebelCode\Wpra\Core\Modules\ModuleInterface; /** * An implementation of a module that is modular - i.e. made up of modules. * * @since 4.13 */ class ModularModule implements ModuleInterface { /** * The plugin modules. * * @since 4.13 * * @var ModuleInterface[] */ protected $modules; /** * Constructor. * * @since 4.13 * * @param ModuleInterface[] $modules The modules. */ public function __construct($modules) { $this->modules = $modules; } /** * {@inheritdoc} * * @since 4.13 */ public function getFactories() { $services = []; foreach ($this->modules as $module) { $services = array_merge($services, $module->getFactories()); } return $services; } /** * {@inheritdoc} * * @since 4.13 */ public function getExtensions() { $extensions = []; foreach ($this->modules as $module) { foreach ($module->getExtensions() as $key => $extension) { if (array_key_exists($key, $extensions)) { $current = $extensions[$key]; $extension = function (ContainerInterface $c, $previous) use ($current, $extension) { $result1 = $current($c, $previous); $result2 = $extension($c, $result1); return $result2; }; } $extensions[$key] = $extension; } } return $extensions; } /** * {@inheritdoc} * * @since 4.13 */ public function run(ContainerInterface $c) { // Run all modules foreach ($this->modules as $module) { $module->run($c); } } }
/home/sudancam/././www/wp-content/plugins/wp-rss-aggregator/src/ModularModule.php