protected function _addDependency(string $file): void
    {
        $file = str_replace('\\', '/', $file);
        if (!in_array($file, $this->_dependencies)) {
            $this->_dependencies[] = $file;
        }
    }
protected function _addDependency(string $file): void
    {
        $file = str_replace('\\', '/', $file);
        if (!in_array($file, $this->_dependencies)) {
            $this->_dependencies[] = $file;
        }
    }
protected function _addDependency ( string $ file ) : void { $ file = str_replace ( '\\' , '/' , $ file ) ; if ( ! in_array ( $ file , $ this -> _dependencies ) ) { $ this -> _dependencies [ ] = $ file ; } }
Add a file to the frontend dependencies

@param string $file path to be added
@return void
Add a file to the frontend dependencies