src/Router.php
public function addScheme(Route\Scheme $scheme)
    {
        foreach ($scheme->getPrefixes() as $prefix) {
            $this->schemePrefixes[$prefix] = $scheme;
        }
        foreach ($scheme->getKeys() as $key) {
            $this->schemeKeys[$key] = $scheme;
        }
    }
public function addScheme(Route\Scheme $scheme)
    {
        foreach ($scheme->getPrefixes() as $prefix) {
            $this->schemePrefixes[$prefix] = $scheme;
        }
        foreach ($scheme->getKeys() as $key) {
            $this->schemeKeys[$key] = $scheme;
        }
    }
public function addScheme ( Route \ Scheme $ scheme ) { foreach ( $ scheme -> getPrefixes ( ) as $ prefix ) { $ this -> schemePrefixes [ $ prefix ] = $ scheme ; } foreach ( $ scheme -> getKeys ( ) as $ key ) { $ this -> schemeKeys [ $ key ] = $ scheme ; } }
Add a route scheme.

@param \Jivoo\Http\Route\Scheme $scheme Scheme.
Add a route scheme .