public function setAssetsDb(array $db)
    {
        foreach ($db as $package_name=>$package) {
            if (empty($package['path']) && isset($package['relative_path'])) {
                $db[$package_name]['path'] = DirectoryHelper::slashDirname(
                    DirectoryHelper::slashDirname($this->getRootDirectory()) .
                    DirectoryHelper::slashDirname($this->getAssetsDirectory()) .
                    DirectoryHelper::slashDirname($this->getAssetsVendorDirectory()) .
                    $package['relative_path']
                );
            }
        }
        $this->assets_db = $db;
        return $this;
    }
public function setAssetsDb(array $db)
    {
        foreach ($db as $package_name=>$package) {
            if (empty($package['path']) && isset($package['relative_path'])) {
                $db[$package_name]['path'] = DirectoryHelper::slashDirname(
                    DirectoryHelper::slashDirname($this->getRootDirectory()) .
                    DirectoryHelper::slashDirname($this->getAssetsDirectory()) .
                    DirectoryHelper::slashDirname($this->getAssetsVendorDirectory()) .
                    $package['relative_path']
                );
            }
        }
        $this->assets_db = $db;
        return $this;
    }
public function setAssetsDb ( array $ db ) { foreach ( $ db as $ package_name => $ package ) { if ( empty ( $ package [ 'path' ] ) && isset ( $ package [ 'relative_path' ] ) ) { $ db [ $ package_name ] [ 'path' ] = DirectoryHelper :: slashDirname ( DirectoryHelper :: slashDirname ( $ this -> getRootDirectory ( ) ) . DirectoryHelper :: slashDirname ( $ this -> getAssetsDirectory ( ) ) . DirectoryHelper :: slashDirname ( $ this -> getAssetsVendorDirectory ( ) ) . $ package [ 'relative_path' ] ) ; } } $ this -> assets_db = $ db ; return $ this ; }
Set the package's assets database

@param   array   $db     The array of package's assets as written in package's `ASSETS_DB_FILENAME`
@return  self
Set the package s assets database