Strata\Middleware\MiddlewareLoader

Allows bridging between Strata and its middlewares.

Middlewares must be loaded in Composer's json file and must
contain a initializer using the following namespace as
convention:

<?php
namespace App\Middleware\MyclassInitializer {

}

    Synopsis

    class MiddlewareLoader {
    }

    Members

    private

    Methods

    private

    public

    • __construct() — Middleware loader constructor builds a list of middleware configurations and instantiates them.
    • getMiddlewares() — Returns the list of defined middlewares
    • hasMiddlewares() — Specifies if a number of middlewares have been defined.
    • initialize() — Goes through the list of defined middlewares to attempt to initialize them.