<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                # Class **Phalcon\Mvc\Micro**[](# "永久鏈接至標題") *extends* abstract class `Phalcon\Di\Injectable` *implements*[*Phalcon\Events\EventsAwareInterface*](#), `Phalcon\Di\InjectionAwareInterface`, ArrayAccess With Phalcon you can create “Micro-Framework like” applications. By doing this, you only need to write a minimal amount of code to create a PHP application. Micro applications are suitable to small applications, APIs and prototypes in a practical way. ~~~ <?php $app = new \Phalcon\Mvc\Micro(); $app->get('/say/welcome/{name}', function ($name) { echo "<h1>Welcome $name!</h1>"; }); $app->handle(); ~~~ ### Methods[](# "永久鏈接至標題") public **__construct** ([*unknown* $dependencyInjector]) Phalcon\Mvc\Micro constructor public **setDI** (*unknown* $dependencyInjector) Sets the DependencyInjector container public [*Phalcon\Mvc\Router\RouteInterface*](#)**map** (*string* $routePattern, *callable* $handler) Maps a route to a handler without any HTTP method constraint public [*Phalcon\Mvc\Router\RouteInterface*](#)**get** (*string* $routePattern, *callable* $handler) Maps a route to a handler that only matches if the HTTP method is GET public [*Phalcon\Mvc\Router\RouteInterface*](#)**post** (*string* $routePattern, *callable* $handler) Maps a route to a handler that only matches if the HTTP method is POST public [*Phalcon\Mvc\Router\RouteInterface*](#)**put** (*string* $routePattern, *callable* $handler) Maps a route to a handler that only matches if the HTTP method is PUT public [*Phalcon\Mvc\Router\RouteInterface*](#)**patch** (*string* $routePattern, *callable* $handler) Maps a route to a handler that only matches if the HTTP method is PATCH public [*Phalcon\Mvc\Router\RouteInterface*](#)**head** (*string* $routePattern, *callable* $handler) Maps a route to a handler that only matches if the HTTP method is HEAD public [*Phalcon\Mvc\Router\RouteInterface*](#)**delete** (*string* $routePattern, *callable* $handler) Maps a route to a handler that only matches if the HTTP method is DELETE public [*Phalcon\Mvc\Router\RouteInterface*](#)**options** (*string* $routePattern, *callable* $handler) Maps a route to a handler that only matches if the HTTP method is OPTIONS public **mount** (*unknown* $collection) Mounts a collection of handlers public [*Phalcon\Mvc\Micro*]()**notFound** (*callable* $handler) Sets a handler that will be called when the router doesn't match any of the defined routes public [*Phalcon\Mvc\Micro*]()**error** (*callable* $handler) Sets a handler that will be called when an exception is thrown handling the route public **getRouter** () Returns the internal router used by the application public [*Phalcon\DI\ServiceInterface*](#)**setService** (*string* $serviceName, *mixed* $definition, [*boolean* $shared]) Sets a service from the DI public **hasService** (*unknown* $serviceName) Checks if a service is registered in the DI public *object***getService** (*string* $serviceName) Obtains a service from the DI public *mixed***getSharedService** (*string* $serviceName) Obtains a shared service from the DI public *mixed***handle** ([*string* $uri]) Handle the whole request public **stop** () Stops the middleware execution avoiding than other middlewares be executed public **setActiveHandler** (*callable* $activeHandler) Sets externally the handler that must be called by the matched route public *callable***getActiveHandler** () Return the handler that will be called for the matched route public *mixed***getReturnedValue** () Returns the value returned by the executed handler public *boolean***offsetExists** (*string* $alias) Check if a service is registered in the internal services container using the array syntax public **offsetSet** (*string* $alias, *mixed* $definition) Allows to register a shared service in the internal services container using the array syntax ~~~ <?php $app['request'] = new \Phalcon\Http\Request(); ~~~ public *mixed***offsetGet** (*string* $alias) Allows to obtain a shared service in the internal services container using the array syntax ~~~ <?php var_dump($di['request']); ~~~ public **offsetUnset** (*string* $alias) Removes a service from the internal services container using the array syntax public [*Phalcon\Mvc\Micro*]()**before** (*callable* $handler) Appends a before middleware to be called before execute the route public [*Phalcon\Mvc\Micro*]()**after** (*callable* $handler) Appends an ‘after' middleware to be called after execute the route public [*Phalcon\Mvc\Micro*]()**finish** (*callable* $handler) Appends a ‘finish' middleware to be called when the request is finished public *array***getHandlers** () Returns the internal handlers attached to the application public **getDI** () inherited from Phalcon\Di\Injectable Returns the internal dependency injector public **setEventsManager** (*unknown* $eventsManager) inherited from Phalcon\Di\Injectable Sets the event manager public **getEventsManager** () inherited from Phalcon\Di\Injectable Returns the internal event manager public **__get** (*unknown* $propertyName) inherited from Phalcon\Di\Injectable Magic method __get | - [索引](# "總目錄") - [下一頁](# "Class Phalcon\Mvc\Micro\Collection") | - [上一頁](# "Class Phalcon\Mvc\Dispatcher\Exception") | - [API Indice](#) ?
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看