abrain/einsatzverwaltung

View on GitHub
src/Api/Initializer.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php
namespace abrain\Einsatzverwaltung\Api;

/**
 * Encapsulates the creation of REST API controllers.
 * @package abrain\Einsatzverwaltung\Api
 */
class Initializer
{
    /**
     * Registers the routes. This function must not be called before the `rest_api_init` action.
     */
    public function onRestApiInit()
    {
        (new Reports())->register_routes();
    }
}