From 26edf7d6ed585ccd114a3834fddb8cc9de0dd397 Mon Sep 17 00:00:00 2001 From: Awilum Date: Fri, 14 Aug 2020 23:33:07 +0300 Subject: [PATCH] feat(core): Flextype Solid Core - next round #458 --- src/flextype/app/Foundation/Cache/Cache.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/flextype/app/Foundation/Cache/Cache.php b/src/flextype/app/Foundation/Cache/Cache.php index 8e650298..29cee925 100755 --- a/src/flextype/app/Foundation/Cache/Cache.php +++ b/src/flextype/app/Foundation/Cache/Cache.php @@ -323,7 +323,7 @@ class Cache public function purge(string $directory) : void { // Run event: onCacheBeforePurge - $this->flextype['emitter']->emit('onCacheBeforePurge'); + $this->flextype->container('emitter')->emit('onCacheBeforePurge'); // Remove specific cache directory Filesystem::deleteDir(PATH['cache'] . '/' . $directory); @@ -342,7 +342,7 @@ class Cache error_reporting($errorReporting); // Run event: onCacheAfterPurge - $this->flextype['emitter']->emit('onCacheAfterPurge'); + $this->flextype->container('emitter')->emit('onCacheAfterPurge'); } /** @@ -353,7 +353,7 @@ class Cache public function purgeAll() : void { // Run event: onCacheAfterPurgeAll - $this->flextype['emitter']->emit('onCacheAfterPurgeAll'); + $this->flextype->container('emitter')->emit('onCacheAfterPurgeAll'); // Remove cache directory Filesystem::deleteDir(PATH['cache']); @@ -372,6 +372,6 @@ class Cache error_reporting($errorReporting); // Run event: onCacheAfterPurgeAll - $this->flextype['emitter']->emit('onCacheAfterPurgeAll'); + $this->flextype->container('emitter')->emit('onCacheAfterPurgeAll'); } }