From 0788fca30b3917ba0463212c593fd5a9c931b574 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ondr=CC=8Cej=20Pech?= Date: Tue, 23 Mar 2021 10:30:26 +0100 Subject: [PATCH] Replace Kdyby\StrictObject for Nette\SmartObject --- composer.json | 2 +- src/Cache.php | 2 +- src/DI/Helpers.php | 2 +- src/MemcacheCache.php | 2 +- src/MemcachedCache.php | 2 +- src/RedisCache.php | 2 +- src/ReversedStorageDecorator.php | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/composer.json b/composer.json index 1017632..c438a69 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ "doctrine/cache": "^1.8.0", "nette/di": "^3.0", "nette/caching": "^3.0", - "kdyby/strict-objects": "^2.0" + "nette/utils": "~3.1.0" }, "require-dev": { "doctrine/orm": "^2.6.3", diff --git a/src/Cache.php b/src/Cache.php index acdeae2..03ea069 100644 --- a/src/Cache.php +++ b/src/Cache.php @@ -25,7 +25,7 @@ class Cache extends \Doctrine\Common\Cache\CacheProvider { - use \Kdyby\StrictObjects\Scream; + use \Nette\SmartObject; public const CACHE_NS = 'Doctrine'; diff --git a/src/DI/Helpers.php b/src/DI/Helpers.php index 3225ee9..b1a4df6 100644 --- a/src/DI/Helpers.php +++ b/src/DI/Helpers.php @@ -30,7 +30,7 @@ class Helpers { - use \Kdyby\StrictObjects\Scream; + use \Nette\SmartObject; /** * @var string[] diff --git a/src/MemcacheCache.php b/src/MemcacheCache.php index 04cede8..42b7ba3 100644 --- a/src/MemcacheCache.php +++ b/src/MemcacheCache.php @@ -20,7 +20,7 @@ class MemcacheCache extends \Doctrine\Common\Cache\MemcacheCache { - use \Kdyby\StrictObjects\Scream; + use \Nette\SmartObject; public function __construct(?Memcache $memcache = NULL) { diff --git a/src/MemcachedCache.php b/src/MemcachedCache.php index 1fa75ab..6cdcbd0 100644 --- a/src/MemcachedCache.php +++ b/src/MemcachedCache.php @@ -17,7 +17,7 @@ class MemcachedCache extends \Doctrine\Common\Cache\MemcachedCache { - use \Kdyby\StrictObjects\Scream; + use \Nette\SmartObject; public function __construct(?Memcached $memcached = NULL) { diff --git a/src/RedisCache.php b/src/RedisCache.php index 9e61d89..b8d4483 100644 --- a/src/RedisCache.php +++ b/src/RedisCache.php @@ -17,7 +17,7 @@ class RedisCache extends \Doctrine\Common\Cache\RedisCache { - use \Kdyby\StrictObjects\Scream; + use \Nette\SmartObject; public function __construct(?Redis $redis = NULL) { diff --git a/src/ReversedStorageDecorator.php b/src/ReversedStorageDecorator.php index 6be8d39..ab52120 100644 --- a/src/ReversedStorageDecorator.php +++ b/src/ReversedStorageDecorator.php @@ -18,7 +18,7 @@ class ReversedStorageDecorator implements \Nette\Caching\IStorage { - use \Kdyby\StrictObjects\Scream; + use \Nette\SmartObject; /** * @var \Doctrine\Common\Cache\CacheProvider