for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Intraxia\Jaxion\Http;
use Intraxia\Jaxion\Contract\Core\Container;
use Intraxia\Jaxion\Contract\Core\ServiceProvider as ServiceProviderContract;
/**
* Class RouterServiceProvider
*
* @package Intraxia\Jaxion
* @subpackage Http
*/
class ServiceProvider implements ServiceProviderContract {
* Container to register on.
* @var Container
protected $container;
* {@inheritDoc}
* @param Container $container
public function register( Container $container ) {
$this->container = $container;
$this->container->define( array( 'router' => 'Intraxia\Jaxion\Http\Router' ), $router = new Router );
$this->add_routes( $router );
}
* Registers the routes on the generated Router.
* This is a no-op by default by can be overwritten by the implementing developer
* to provide a single, clean location to register their routes.
* @param Router $router
* @codeCoverageIgnore
protected function add_routes( Router $router ) {
$router
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
// no-op
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.