Append style sheet after all group stylesheets for later render process
@param  string  $path
@param  string  $media
@param  boolean $renderPhpTags
@param  boolean $doNotMinify
@return \MvcCore\Ext\Views\Helpers\CssHelper
19197
public function Append($path = '', $media = 'all', $renderPhpTags = FALSE, $doNotMinify = FALSE) {
		$item = $this->_completeItem($path, $media, $renderPhpTags, $doNotMinify);
		$currentGroupRecords = & $this->_getLinksGroupContainer($this->actualGroupName);
		array_push($currentGroupRecords, $item);
		return $this;
	}
1048930
public function put($path, $contents, $visibility = null)
    {
        if ($visibility !== null) {
            $this->setVisibility($path, $visibility);
        }

        return $this->fs->put($path, $contents);
    }
641762
public function map_comments_template_to_partials($path)
    {
        $tpl = \str_replace(
            [STYLESHEETPATH, TEMPLATEPATH, '.'],
            ['', '', '/'],
            $path
        );

        $locate = \locate_template(Theme_Utils::get_path_to_partial($tpl), false);

        if ($locate !== '') {
            return $locate;
        }

        $locate = \locate_template(Theme_Utils::get_path_to_partial('comments'), false);

        if ($locate !== '') {
            return $locate;
        }

        return $path;
    }
1301489
public static function make($path, $file = '', $params = null)
    {
        static::$instance or static::$instance = static::$di->getShared('view');
        return static::$instance->render($path, $file, $params)->getContent();
    }
1334566
public function css($path, $rel = null, $options = array()) {
		$options = array_merge(array('block' => 'css'), $options);
		$this->_append('css', $path, $options, $rel);
	}
697054
public function includeInlineCssTags(string $path): \Twig\Markup
    {
        return Template::raw(
            Twigpack::$plugin->manifest->getCssInlineTags($path)
        );
    }
35811
public function Contains ($path = '', $media = 'all', $doNotMinify = FALSE) {
		$result = FALSE;
		$linksGroup = & $this->_getLinksGroupContainer($this->actualGroupName);
		foreach ($linksGroup as & $item) {
			if ($item->path == $path) {
				if ($item->media == $media && $item->doNotMinify == $doNotMinify) {
					$result = TRUE;
					break;
				}
			}
		}
		return $result;
	}
180366
public function templateFile($path, array $arguments = [])
    {
        $this->file($path)->template($this->makePath($path), $arguments);
    }
684549
private function stylesheet($path)
	{
		$response = Response::make(Asset::stylesheet($path), 200);

		$response->header('Content-Type', 'text/css');

		return $response;
	}
875156
public function build($path)
    {
        $fileName = $path . '.html';
        if (!file_exists($fileName))
        {
            touch($fileName);
        }
        file_put_contents($fileName, $this->buffer);
    }
985205
public function append($path) {
		$path = $this->normalizePath($path);
		
		$this->inputFiles->push($path);
		
		return $this;
	}
926106
public function Contains ($path = '', $async = FALSE, $defer = FALSE, $doNotMinify = FALSE) {
		$result = FALSE;
		$scriptsGroup = & $this->_getScriptsGroupContainer($this->actualGroupName);
		foreach ($scriptsGroup as & $item) {
			if ($item->path == $path) {
				if ($item->async == $async && $item->defer == $defer && $item->doNotMinify == $doNotMinify) {
					$result = TRUE;
					break;
				}
			}
		}
		return $result;
	}
1098435
public function Append ($path = '', $async = FALSE, $defer = FALSE, $doNotMinify = FALSE, $external = FALSE) {
		$item = $this->_completeItem($path, $async, $defer, $doNotMinify, $external);
		$actialGroupItems = & $this->_getScriptsGroupContainer($this->actualGroupName);
		array_push($actialGroupItems, $item);
		return $this;
	}
340712
public function writePHPDocMethod($path = '')
    {
        if (empty($path)) {
            $path = realpath($this->rootPath . $this->DEFAULT_API_JSON_PATH);
            if (empty($path)) {
                $path = $this->rootPath . $this->DEFAULT_API_JSON_PATH;
            }
            $path = preg_replace('/\.[^.]+?$/', '.php', $path);
        }
        if (file_exists($path)) {
            rename($path, $path . '.bak');
        }

        $data = $this->methodData;
        $filterParams = ['data' => $data, 'definition' => $this->data, 'source' =>
            $this->sourceData];

        $methods = array_merge(["<?php", "/** "], $data ? : [], [" */", ""]);
        $methods = $this->applyFilter('DocMethodFinalArray', $methods, $filterParams);
        $methodText = implode("\n", $methods);
        $methodText = $this->applyFilter('DocMethodFinalText', $methodText, $filterParams);

        return file_put_contents($path, $methodText);
    }
855500
public function compile($path = null)
    {
        if ($path) {
            $this->setPath($path);
        }

        if (! is_null($this->cachePath)) {
            $contents = $this->compileString(
                $this->files->get($this->getPath())
            );

            if (! empty($this->getPath())) {
                $tokens = $this->getOpenAndClosingPhpTokens($contents);

                // If the tokens we retrieved from the compiled contents have at least
                // one opening tag and if that last token isn't the closing tag, we
                // need to close the statement before adding the path at the end.
                if ($tokens->isNotEmpty() && $tokens->last() !== T_CLOSE_TAG) {
                    $contents .= ' ?>';
                }

                $contents .= "<?php /**PATH {$this->getPath()} ENDPATH**/ ?>";
            }

            $this->files->put(
                $this->getCompiledPath($this->getPath()), $contents
            );
        }
    }
71705
public function generatePhpFile(array $functions, string $path): void
    {
        $path = rtrim($path, '/').'/';
        $phpFunctionsByModule = [];
        foreach ($functions as $function) {
            $writePhpFunction = new WritePhpFunction($function);
            $phpFunctionsByModule[$function->getModuleName()][] = $writePhpFunction->getPhpFunctionalFunction();
        }

        foreach ($phpFunctionsByModule as $module => $phpFunctions) {
            $lcModule = \lcfirst($module);
            $stream = \fopen($path.$lcModule.'.php', 'w');
            if ($stream === false) {
                throw new \RuntimeException('Unable to write to '.$path);
            }
            \fwrite($stream, "<?php\n
namespace Safe;

use Safe\\Exceptions\\".self::toExceptionName($module). ';

');
            foreach ($phpFunctions as $phpFunction) {
                \fwrite($stream, $phpFunction."\n");
            }
            \fclose($stream);
        }
    }
338379
private function findMedia($path)
    {
        /** @var \Ekyna\Bundle\MediaBundle\Model\MediaInterface $media */
        $media = $this
            ->get('ekyna_media.media.repository')
            ->findOneBy(['path' => $path])
        ;
        if (null === $media) {
            throw new NotFoundHttpException('Media not found');
        }

        $fs = $this->get('local_media_filesystem');
        if (!$fs->has($media->getPath())) {
            throw new NotFoundHttpException('Media not found');
        }
        $file = $fs->get($media->getPath());

        return [$media, $file];
    }