<?php

/**
 * Register middlewares, which will be triggered at each request
 */
return [
    'frontend' => [
        'typo3/cms-frontend/page-resolver' => [
            'target' => Opentalent\OtOptimizer\Middleware\Frontend\OtPageResolver::class,
            'before' => [
                'typo3/frontendediting/initiator'
            ],
            'after' => [
                'typo3/cms-frontend/preview-simulator'
            ],
        ],
    ],
];
