diff --git a/src/Pattern/PatternCacheFactory.php b/src/Pattern/PatternCacheFactory.php index d063e2db..0b7573b3 100644 --- a/src/Pattern/PatternCacheFactory.php +++ b/src/Pattern/PatternCacheFactory.php @@ -8,6 +8,10 @@ use Psr\Container\ContainerInterface; use function class_exists; +/** + * @deprecated This will be removed with v3.0.0 as providing generic factories for cache patterns wont be suitable for + * all possible combinations of implemented upstream patterns. + */ final class PatternCacheFactory { /** diff --git a/src/Pattern/StoragePatternCacheFactory.php b/src/Pattern/StoragePatternCacheFactory.php index 699dbe4d..00b8fbcb 100644 --- a/src/Pattern/StoragePatternCacheFactory.php +++ b/src/Pattern/StoragePatternCacheFactory.php @@ -12,6 +12,10 @@ use function class_exists; use function is_string; +/** + * @deprecated This will be removed with v3.0.0 as providing generic factories for cache patterns wont be suitable for + * all possible combinations of implemented upstream patterns. + */ final class StoragePatternCacheFactory { /** diff --git a/src/PatternFactory.php b/src/PatternFactory.php index 224cfd7b..93870e47 100644 --- a/src/PatternFactory.php +++ b/src/PatternFactory.php @@ -7,8 +7,9 @@ use Traversable; /** - * @deprecated Please do not use static factories anymore. - * Inject {@see PatternPluginManager} instead. + * @deprecated Please do not use static factories anymore. Please create your own instances by creating a + * dedicated factory for each of the patterns with your project specific needs or just instantiate + * the pattern manually instead of calling this factory. */ abstract class PatternFactory { diff --git a/src/PatternPluginManager/PatternPluginManagerTrait.php b/src/PatternPluginManager/PatternPluginManagerTrait.php index 499c085b..b1c50856 100644 --- a/src/PatternPluginManager/PatternPluginManagerTrait.php +++ b/src/PatternPluginManager/PatternPluginManagerTrait.php @@ -12,6 +12,8 @@ * Trait does not define properties, as the properties common between the * two versions are originally defined in their parent class, causing a * resolution conflict. + * + * @deprecated This will be removed in v3.0.0 and should never have been used in upstream projects anyways. */ trait PatternPluginManagerTrait { diff --git a/src/PatternPluginManager/PatternPluginManagerV2Polyfill.php b/src/PatternPluginManager/PatternPluginManagerV2Polyfill.php index f7ee1229..d310ea22 100644 --- a/src/PatternPluginManager/PatternPluginManagerV2Polyfill.php +++ b/src/PatternPluginManager/PatternPluginManagerV2Polyfill.php @@ -12,6 +12,8 @@ * Enforces that retrieved adapters are instances of * Pattern\PatternInterface. Additionally, it registers a number of default * patterns available. + * @deprecated This will be removed in v3.0.0. Cache pattern will require dependency injection and thus, a generic + * plugin manager makes no sense anymore. */ class PatternPluginManagerV2Polyfill extends AbstractPluginManager { diff --git a/src/PatternPluginManager/PatternPluginManagerV3Polyfill.php b/src/PatternPluginManager/PatternPluginManagerV3Polyfill.php index c2d13684..54baf5b1 100644 --- a/src/PatternPluginManager/PatternPluginManagerV3Polyfill.php +++ b/src/PatternPluginManager/PatternPluginManagerV3Polyfill.php @@ -12,6 +12,8 @@ * Enforces that retrieved adapters are instances of * Pattern\PatternInterface. Additionally, it registers a number of default * patterns available. + * @deprecated This will be removed in v3.0.0. Cache pattern will require dependency injection and thus, a generic + * plugin manager makes no sense anymore. */ class PatternPluginManagerV3Polyfill extends AbstractPluginManager {