Location: PHPKode > projects > Halo > halo-0.0.2/halo_handler_ControllerHandlerAdapter.php
<?php

require_once('halo_IHandlerAdapter.php');
require_once('halo_mvc_IController.php');
require_once('halo_HttpRequest.php');
require_once('halo_HttpResponse.php');

require_once('halo_IController.php'); // TODO Legacy, should be removed

class halo_handler_ControllerHandlerAdapter implements halo_IHandlerAdapter {

    /**
     * (non-PHPdoc)
     * @see halo_IHandlerAdapter::supports()
     */
    public function supports($object) {
        return ( $object instanceof halo_mvc_IController || $object instanceof halo_IController );
    }

    /**
     * (non-PHPdoc)
     * @see halo_IHandlerAdapter::handle()
     */
    public function handle(halo_HttpRequest $httpRequest, halo_HttpResponse $httpResponse, $handler) {
        return $handler->handleRequest($httpRequest, $httpResponse);
    }

}
Return current item: Halo