From 922a01e2f0c872217443c96a6ea47c51bb806b13 Mon Sep 17 00:00:00 2001 From: Chris Galliano Date: Thu, 2 May 2019 02:32:23 +0300 Subject: [PATCH] apply realdir to web resource path && class rename --- .../Web/{WebResourcePath.php => WebAppResourcePath.php} | 4 ++-- web-app/src/Homepage/HomepageView.html | 4 ++-- web-app/src/Layout/Layout.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) rename web-app/src/Assets/Web/{WebResourcePath.php => WebAppResourcePath.php} (80%) diff --git a/web-app/src/Assets/Web/WebResourcePath.php b/web-app/src/Assets/Web/WebAppResourcePath.php similarity index 80% rename from web-app/src/Assets/Web/WebResourcePath.php rename to web-app/src/Assets/Web/WebAppResourcePath.php index 2b509f6..1f55331 100755 --- a/web-app/src/Assets/Web/WebResourcePath.php +++ b/web-app/src/Assets/Web/WebAppResourcePath.php @@ -4,7 +4,7 @@ use Pion\Templating\Assets\Resource\Path\ResourcePathInterface; - class WebResourcePath implements ResourcePathInterface + class WebAppResourcePath implements ResourcePathInterface { /** @@ -15,7 +15,7 @@ class WebResourcePath implements ResourcePathInterface public function __construct(string $path) { - $this->path = $path; + $this->path = realpath($path); } diff --git a/web-app/src/Homepage/HomepageView.html b/web-app/src/Homepage/HomepageView.html index d940cd6..c277110 100755 --- a/web-app/src/Homepage/HomepageView.html +++ b/web-app/src/Homepage/HomepageView.html @@ -1,7 +1,7 @@ @@ -11,7 +11,7 @@ Include img:
- logo + logo
diff --git a/web-app/src/Layout/Layout.php b/web-app/src/Layout/Layout.php index 3c36e48..20eb939 100755 --- a/web-app/src/Layout/Layout.php +++ b/web-app/src/Layout/Layout.php @@ -9,7 +9,7 @@ use Pion\Templating\Renderable\RenderableInterface; use Src\Assets\Scss\ScssResourcePath; use Src\Assets\Section\SectionIds; - use Src\Assets\Web\WebResourcePath; + use Src\Assets\Web\WebAppResourcePath; final class Layout implements RenderableInterface { @@ -36,7 +36,7 @@ public function render(EngineInterface $engine) : string { $engine->assetsManager() ->add( - new JsResource(new WebResourcePath(__DIR__ . '../../web/assets/compiled/libs/jquery.min.js')), + new JsResource(new WebAppResourcePath(__DIR__ . '../../web/assets/compiled/libs/jquery.min.js')), SectionIds::SECTION_FOOTER ) ->add(