public function build()
    {
        $prefix = $this->options['prefix'];
        foreach ($this->resources as $resId => $controller) {
            $resourceMux = $controller->expand();
            $path = $prefix . '/' . $resId;
            $this->mux->mount($path, $resourceMux);
        }
        return $this->mux;
    }
public function build()
    {
        $prefix = $this->options['prefix'];
        foreach ($this->resources as $resId => $controller) {
            $resourceMux = $controller->expand();
            $path = $prefix . '/' . $resId;
            $this->mux->mount($path, $resourceMux);
        }
        return $this->mux;
    }
public function build ( ) { $ prefix = $ this -> options [ 'prefix' ] ; foreach ( $ this -> resources as $ resId => $ controller ) { $ resourceMux = $ controller -> expand ( ) ; $ path = $ prefix . '/' . $ resId ; $ this -> mux -> mount ( $ path , $ resourceMux ) ; } return $ this -> mux ; }
build method returns a Mux object with registered resources.

@return Pux\Mux
build method returns a Mux object with registered resources .