/** * (non-PHPdoc) * * @see \compact\IAppContext::handlers() */ public function handlers(Context $ctx) { $ctx->addHandler(new Imagehandler()); }
/** * (non-PHPdoc) * * @see \compact\IAppContext::handlers() */ public function handlers(Context $ctx) { // Handle all JSON responses $ctx->addHandler(new JsonHandler()); // Handle downloads $ctx->addHandler(new DownloadHandler()); }