restler1.php 350 B

1234567891011121314
  1. <?php
  2. /**
  3. * Restler 1 compatibility mode enabler
  4. */
  5. use Luracast\Restler\Defaults;
  6. //changes in iAuthenticate
  7. Defaults::$authenticationMethod = 'isAuthenticated';
  8. include __DIR__ . '/iAuthenticate.php';
  9. //changes in routing
  10. Defaults::$autoRoutingEnabled = false;
  11. Defaults::$smartParameterParsing = false;
  12. Defaults::$autoValidationEnabled = false;