Robo\Task\Assets\Minify::fromFile PHP Метод

fromFile() защищенный Метод

Sets text from asset file path. Tries to guess type and set default destination.
protected fromFile ( string $path )
$path string
    protected function fromFile($path)
    {
        $this->text = file_get_contents($path);
        unset($this->type);
        $this->type($this->getExtension($path));
        if (empty($this->dst) && !empty($this->type)) {
            $ext_length = strlen($this->type) + 1;
            $this->dst = substr($path, 0, -$ext_length) . '.min.' . $this->type;
        }
        return $this;
    }