????

Your IP : 216.73.216.79


Current Path : /proc/self/root/home/arabianr/www/wp-content/plugins/simplybook/app/Managers/
Upload File :
Current File : //proc/self/root/home/arabianr/www/wp-content/plugins/simplybook/app/Managers/ProviderManager.php

<?php

declare(strict_types=1);

namespace SimplyBook\Managers;

use SimplyBook\Interfaces\ProviderInterface;

final class ProviderManager extends AbstractManager
{
    /**
     * @inheritDoc
     */
    public function isRegistrable(object $class): bool
    {
        return $class instanceof ProviderInterface;
    }

    /**
     * @inheritDoc
     */
    public function registerClass(object $class): void
    {
        $class->provide();
    }

    /**
     * @inheritDoc
     */
    public function afterRegister(): void
    {
        do_action('simplybook_providers_loaded');
    }
}