src/Route/Router.php
public function setConditions(array $conditions = [])
    {
        $config = $this->container->has('config') ? $this->container->make('config') : null;

        if (! is_null($config)) {
            $this->conditions = array_merge(
                $config->get('app.conditions', []),
                $conditions
            );
        } else {
            $this->conditions = $conditions;
        }
    }
public function setConditions(array $conditions = [])
    {
        $config = $this->container->has('config') ? $this->container->make('config') : null;

        if (! is_null($config)) {
            $this->conditions = array_merge(
                $config->get('app.conditions', []),
                $conditions
            );
        } else {
            $this->conditions = $conditions;
        }
    }
public function setConditions ( array $ conditions = [ ] ) { $ config = $ this -> container -> has ( 'config' ) ? $ this -> container -> make ( 'config' ) : null ; if ( ! is_null ( $ config ) ) { $ this -> conditions = array_merge ( $ config -> get ( 'app.conditions' , [ ] ) , $ conditions ) ; } else { $ this -> conditions = $ conditions ; } }
Setup WordPress conditions.

@param array $conditions
Setup WordPress conditions .