14 lines
350 B
PHP
Raw Normal View History

2024-09-06 20:28:06 +08:00
<?php
/**
* Restler 1 compatibility mode enabler
*/
use Luracast\Restler\Defaults;
//changes in iAuthenticate
Defaults::$authenticationMethod = 'isAuthenticated';
include __DIR__ . '/iAuthenticate.php';
//changes in routing
Defaults::$autoRoutingEnabled = false;
Defaults::$smartParameterParsing = false;
Defaults::$autoValidationEnabled = false;