🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-06-18 09:08:23 | PHP 8.1.34
📂
/ (Root)
/
home
/
therahul
/
ramailobhela.com
/
wp-content
/
plugins
/
wp-event-solution
/
base
/
Abstracts
📍 /home/therahul/ramailobhela.com/wp-content/plugins/wp-event-solution/base/Abstracts
🔄 Refresh
✏️
Editing: Provider.php
Writable
<?php namespace Eventin\Abstracts; use Eventin\Eventin; use Eventin\Interfaces\HookableInterface; use Eventin\Interfaces\ProviderInterface; /** * Handles installations of services * * @package Eventin\Abastracts */ abstract class Provider implements ProviderInterface { /** * Holds classes that should be instantiated * * @var array */ protected $services = []; /** * Service provider * * @param array $services All services that should be instantiated * * @return void */ public function __construct( array $services = [] ) { if ( ! empty( $services ) ) { $this->services = $services; } $this->register(); } /** * Registers services * * @return void */ public function register(): void { $services = apply_filters( 'eventin_services', $this->services ); foreach ( $services as $service ) { if ( ! class_exists( $service ) ) { continue; } $service = Eventin::$container->get( $service ); if ( $service instanceof HookableInterface ) { $service->register_hooks(); } } } }
💾 Save Changes
❌ Cancel