private function preload($target, $alias)
    {
        if (!is_file($target) || !is_readable($target)) {
            throw new RuntimeException('Either invalid file supplied or its not readable');
        }

        // Prepare base name
        if ($alias === null) {
            $baseName = FileManager::getBaseName($target);
        } else {
            $baseName = $alias;
        }

        // Grab the Mime-Type
        $mime = FileManager::getMimeType($target);

        $this->prepare($mime, $baseName);
    }
private function preload($target, $alias)
    {
        if (!is_file($target) || !is_readable($target)) {
            throw new RuntimeException('Either invalid file supplied or its not readable');
        }

        // Prepare base name
        if ($alias === null) {
            $baseName = FileManager::getBaseName($target);
        } else {
            $baseName = $alias;
        }

        // Grab the Mime-Type
        $mime = FileManager::getMimeType($target);

        $this->prepare($mime, $baseName);
    }
private function preload ( $ target , $ alias ) { if ( ! is_file ( $ target ) || ! is_readable ( $ target ) ) { throw new RuntimeException ( 'Either invalid file supplied or its not readable' ) ; } // Prepare base name if ( $ alias === null ) { $ baseName = FileManager :: getBaseName ( $ target ) ; } else { $ baseName = $ alias ; } // Grab the Mime-Type $ mime = FileManager :: getMimeType ( $ target ) ; $ this -> prepare ( $ mime , $ baseName ) ; }
Preloads all required params

@param string $target
@param string $alias Appears as alias
@throws \RuntimeException If can't access the target file
@return void
Preloads all required params