Server IP : 49.212.180.16 / Your IP : 3.19.120.1 Web Server : Apache System : FreeBSD www2606.sakura.ne.jp 13.0-RELEASE-p14 FreeBSD 13.0-RELEASE-p14 #2: Mon Dec 9 13:54:55 JST 2024 root@www5301.sakura.ne.jp:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 User : utannto ( 1076) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/utannto/www/hironaka.biz/wp-content/plugins/easing-slider/src/Foundation/Admin/ |
Upload File : |
<?php namespace EasingSlider\Foundation\Admin; use EasingSlider\Foundation\Contracts\Admin\Admin as AdminContract; use EasingSlider\Foundation\Contracts\Plugin; /** * Exit if accessed directly */ if ( ! defined('ABSPATH')) { exit; } abstract class Admin implements AdminContract { /** * Plugin * * @var \EasingSlider\Foundation\Contracts\Plugin */ protected $plugin; /** * Admin Prefix * * @var string */ protected $prefix; /** * Services * * @var array */ protected $services = array(); /** * Constructor * * @param \EasingSlider\Foundation\Contracts\Plugin $plugin * @return void */ public function __construct(Plugin $plugin) { $this->plugin = $plugin; $this->bindAliases(); $this->bindSingletons(); $this->boot(); } /** * __call function. * * @param string $name * @param array $arguments * @return mixed */ public function __call($name, $arguments) { if (isset($this->$name)) { return $this->$name; } } /** * Bind aliases * * @return void */ protected function bindAliases() { foreach ($this->aliases as $contract => $class) { $this->plugin->alias($contract, $class); } } /** * Bind singletons * * @return void */ protected function bindSingletons() { foreach ($this->singletons as $singleton) { $this->plugin->share($singleton); } } /** * Boot * * @return void */ abstract protected function boot(); }