All Downloads are FREE. Search and download functionalities are using the official Maven repository.

php-slim-server.SlimRouter.mustache Maven / Gradle / Ivy

There is a newer version: 7.8.0
Show newest version
 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 - 2024 Weber Informatics LLC | Privacy Policy