src/Route/AssetScheme.php
public function addPath($namespace, $path, $priority = 5)
    {
        if ($path != '') {
            $path = rtrim($path, '/') . '/';
        }
        $namespace = '/' . trim($namespace, '/');
        
        if (! isset($this->paths[$namespace])) {
            $this->paths[$namespace] = [];
        }
        $this->paths[$namespace][] = [
            'path' => $path,
            'priority' => $priority
        ];
        usort($this->paths[$namespace], ['Jivoo\Utilities', 'prioritySorter']);
    }
public function addPath($namespace, $path, $priority = 5)
    {
        if ($path != '') {
            $path = rtrim($path, '/') . '/';
        }
        $namespace = '/' . trim($namespace, '/');
        
        if (! isset($this->paths[$namespace])) {
            $this->paths[$namespace] = [];
        }
        $this->paths[$namespace][] = [
            'path' => $path,
            'priority' => $priority
        ];
        usort($this->paths[$namespace], ['Jivoo\Utilities', 'prioritySorter']);
    }
public function addPath ( $ namespace , $ path , $ priority = 5 ) { if ( $ path != '' ) { $ path = rtrim ( $ path , '/' ) . '/' ; } $ namespace = '/' . trim ( $ namespace , '/' ) ; if ( ! isset ( $ this -> paths [ $ namespace ] ) ) { $ this -> paths [ $ namespace ] = [ ] ; } $ this -> paths [ $ namespace ] [ ] = [ 'path' => $ path , 'priority' => $ priority ] ; usort ( $ this -> paths [ $ namespace ] , [ 'Jivoo\Utilities' , 'prioritySorter' ] ) ; }
Add an asset path.

@param string $namespace Asset namespace.
@param string $path Path.
@param int $priority Path priority.
Add an asset path .