Mvc\Micro\Collection::isLazy

public isLazy () Returns if the main handler must be lazy loaded

Mvc\Micro\Collection::head

public Phalcon\Mvc\Micro\Collection head (string $routePattern, callable $handler, [string $name]) Maps a route to a handler that only matches if the HTTP method is HEAD

Mvc\Micro\Collection::getPrefix

public getPrefix () Returns the collection prefix if any

Mvc\Micro\Collection::getHandlers

public array getHandlers () Returns the registered handlers

Mvc\Micro\Collection::getHandler

public mixed getHandler () Returns the main handler

Mvc\Micro\Collection::get

public Phalcon\Mvc\Micro\Collection get (string $routePattern, callable $handler, [string $name]) Maps a route to a handler that only matches if the HTTP method is GET

Mvc\Micro\Collection::delete

public Phalcon\Mvc\Micro\Collection delete (string $routePattern, callable $handler, [string $name]) Maps a route to a handler that only matches if the HTTP method is DELETE

Mvc\Micro\Collection

implements Phalcon\Mvc\Micro\CollectionInterface Source on GitHub Groups Micro-Mvc handlers as controllers $app = new \Phalcon\Mvc\Micro(); $collection = new Collection(); $collection->setHandler(new PostsController()); $collection->get('/posts/edit/{id}', 'edit'); $app->mount($collection); Methods protected _addMap (string | array $method, string $routePattern, mixed $handler, string $name) Internal function to add a handler to the group public setPrefix (mixed $prefix) Sets

Mvc\Micro::stop

public stop () Stops the middleware execution avoiding than other middlewares be executed

Mvc\Micro::setService

public Phalcon\Di\ServiceInterface setService (string $serviceName, mixed $definition, [boolean $shared]) Sets a service from the DI