src/routing/MRouting.php
public function add( MRoute $route )
    {
        $this->validateRoute( $route );

        $this->routeList->insert( $route->getRole(), $route );
    }
public function add( MRoute $route )
    {
        $this->validateRoute( $route );

        $this->routeList->insert( $route->getRole(), $route );
    }
public function add ( MRoute $ route ) { $ this -> validateRoute ( $ route ) ; $ this -> routeList -> insert ( $ route -> getRole ( ) , $ route ) ; }
Adds a new definition of Route.

@param MRoute $route
@throws MInvalidClassNameException
@throws MInvalidMethodNameException
@throws MInvalidRoleException
@throws MInvalidRouteTypeException
Adds a new definition of Route .