src/Samurai/Component/Routing/Router.php
public function import($file)
    {
        $rules = $this->yaml->load($file);

        foreach ($rules as $rule) {
            list($key, $value) = each($rule);
            switch ($key) {
                case 'root':
                    $this->setRoot($value);
                    break;
                case 'match':
                    $this->addMatchRule($value);
                    break;
            }
        }
    }
public function import($file)
    {
        $rules = $this->yaml->load($file);

        foreach ($rules as $rule) {
            list($key, $value) = each($rule);
            switch ($key) {
                case 'root':
                    $this->setRoot($value);
                    break;
                case 'match':
                    $this->addMatchRule($value);
                    break;
            }
        }
    }
public function import ( $ file ) { $ rules = $ this -> yaml -> load ( $ file ) ; foreach ( $ rules as $ rule ) { list ( $ key , $ value ) = each ( $ rule ) ; switch ( $ key ) { case 'root' : $ this -> setRoot ( $ value ) ; break ; case 'match' : $ this -> addMatchRule ( $ value ) ; break ; } } }
import routing config.

@access  public
@param   string  $file
import routing config .