php-slim-server.SlimRouter.mustache Maven / Gradle / Ivy
false,
"authenticator" => function ($arguments) {
$user = $arguments["user"];
$password = $arguments["password"];
return false;
}
]);
{{#apis}}
{{#operations}}
{{#operation}}
$app->{{httpMethod}}(
'{{{basePathWithoutHost}}}{{{path}}}',
{{classname}}::class . ':{{operationId}}'
{{#hasAuthMethods}}
{{#authMethods}}
{{#isBasic}}
)->add(
$basicAuth
{{/isBasic}}
{{/authMethods}}
{{/hasAuthMethods}}
);
{{/operation}}
{{/operations}}
{{/apis}}
$this->slimApp = $app;
}
/**
* Returns Slim Framework instance
* @return App
*/
public function getSlimApp()
{
return $this->slimApp;
}
}
{{/apiInfo}}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy