src/Assets/AssetResolver.php
/**
     * Recursively resolve an asset's dependancies. Returns an array where the
     * first item is the resolved scripts, and the second the resolved styles
     *
     * @param  string $name
     * @return \Tlr\Display\Assets\AssetResolver
     */
Recursively resolve an asset's dependancies. Returns an array where the
first item is the resolved scripts, and the second the resolved styles

@param  string $name
@return \Tlr\Display\Assets\AssetResolver
Recursively resolve an asset ' s dependancies . Returns an array where the first item is the resolved scripts and the second the resolved styles @param string $name @return \ Tlr \ Display \ Assets \ AssetResolver
public function resolve($name)
    {
        if (is_array($name)) {
            return $this->resolveArray($name);
        }
        $asset = $this->assets->get($name);
        if ($this->trackedOrResolved($asset)) {
            return $this;
        }
        $this->tracked[] = $asset;
        foreach ($asset->dependancies() as $dependancy) {
            $this->resolve($dependancy);
        }
        $this->resolved[] = $asset;
        return $this;
    }
public function resolve ( $ name ) { if ( is_array ( $ name ) ) { return $ this -> resolveArray ( $ name ) ; } $ asset = $ this -> assets -> get ( $ name ) ; if ( $ this -> trackedOrResolved ( $ asset ) ) { return $ this ; } $ this -> tracked [ ] = $ asset ; foreach ( $ asset -> dependancies ( ) as $ dependancy ) { $ this -> resolve ( $ dependancy ) ; } $ this -> resolved [ ] = $ asset ; return $ this ; }
Recursively resolve an asset's dependancies.
Recursively resolve an asset ' s dependancies .
// resolve dependancies