# metricool/trunk/app/Managers/ControllerManager.php

Metricool – Social media and site statistics, version trunk. 35 lines.

- Page: https://pluginprobe.com/plugins/metricool/trunk/code/app/Managers/ControllerManager.php
- Raw: https://pluginprobe.com/plugins/metricool/trunk/raw/app/Managers/ControllerManager.php
- Modified: 2026-08-20T14:08:30+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/metricool/trunk/code/app/Managers/ControllerManager.php#L10-L20`.

```php
<?php

declare(strict_types=1);

namespace Metricool\Managers;

use Metricool\Interfaces\ControllerInterface;

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

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

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

```
