From 92635d6ffd0268d803104ea60f4a772c82c3f11a Mon Sep 17 00:00:00 2001 From: ilirhxh Date: Tue, 18 Dec 2018 09:33:05 +0000 Subject: [PATCH 1/2] Extracts TraceableAdapterEvent class to it's own file --- .../Cache/Adapter/TraceableAdapter.php | 10 ------- .../Cache/Adapter/TraceableAdapterEvent.php | 26 +++++++++++++++++++ 2 files changed, 26 insertions(+), 10 deletions(-) create mode 100644 src/Symfony/Component/Cache/Adapter/TraceableAdapterEvent.php diff --git a/src/Symfony/Component/Cache/Adapter/TraceableAdapter.php b/src/Symfony/Component/Cache/Adapter/TraceableAdapter.php index e1d96bb4ef210..14acde0ec2d37 100644 --- a/src/Symfony/Component/Cache/Adapter/TraceableAdapter.php +++ b/src/Symfony/Component/Cache/Adapter/TraceableAdapter.php @@ -269,13 +269,3 @@ protected function start($name) return $event; } } - -class TraceableAdapterEvent -{ - public $name; - public $start; - public $end; - public $result; - public $hits = 0; - public $misses = 0; -} diff --git a/src/Symfony/Component/Cache/Adapter/TraceableAdapterEvent.php b/src/Symfony/Component/Cache/Adapter/TraceableAdapterEvent.php new file mode 100644 index 0000000000000..1ba02635014fb --- /dev/null +++ b/src/Symfony/Component/Cache/Adapter/TraceableAdapterEvent.php @@ -0,0 +1,26 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Cache\Adapter; + +/** + * @author Tobias Nyholm + * @author Nicolas Grekas + */ +class TraceableAdapterEvent +{ + public $name; + public $start; + public $end; + public $result; + public $hits = 0; + public $misses = 0; +} From b09a67576f6b28311ef8adac794d5899dd4287b1 Mon Sep 17 00:00:00 2001 From: ilirhxh Date: Tue, 18 Dec 2018 09:52:31 +0000 Subject: [PATCH 2/2] Fix test --- src/Symfony/Component/Cache/LockRegistry.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Symfony/Component/Cache/LockRegistry.php b/src/Symfony/Component/Cache/LockRegistry.php index 0aadf33d61cfb..fec8ea4ba0b15 100644 --- a/src/Symfony/Component/Cache/LockRegistry.php +++ b/src/Symfony/Component/Cache/LockRegistry.php @@ -50,6 +50,7 @@ class LockRegistry __DIR__.\DIRECTORY_SEPARATOR.'Adapter'.\DIRECTORY_SEPARATOR.'TagAwareAdapter.php', __DIR__.\DIRECTORY_SEPARATOR.'Adapter'.\DIRECTORY_SEPARATOR.'TagAwareAdapterInterface.php', __DIR__.\DIRECTORY_SEPARATOR.'Adapter'.\DIRECTORY_SEPARATOR.'TraceableAdapter.php', + __DIR__.\DIRECTORY_SEPARATOR.'Adapter'.\DIRECTORY_SEPARATOR.'TraceableAdapterEvent.php', __DIR__.\DIRECTORY_SEPARATOR.'Adapter'.\DIRECTORY_SEPARATOR.'TraceableTagAwareAdapter.php', );