Skip to content

Commit

Permalink
Merge pull request #50 from boesing/qa/pattern-factory-deprecated
Browse files Browse the repository at this point in the history
qa: mark `PatternFactory` as deprecated
  • Loading branch information
boesing authored Apr 29, 2021
2 parents 38dbf82 + 0ddeaf8 commit d789161
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/PatternFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,24 @@
use Laminas\Stdlib\ArrayUtils;
use Traversable;

/**
* @deprecated Please do not use static factories anymore.
* Inject {@see PatternPluginManager} instead.
*/
abstract class PatternFactory
{
/**
* The pattern manager
*
* @var null|PatternPluginManager
*/
protected static $plugins = null;
protected static $plugins;

/**
* Instantiate a cache pattern
*
* @param string|Pattern\PatternInterface $patternName
* @param array|Traversable|Pattern\PatternOptions $options
* @param array<string,mixed>|Traversable<string,mixed>|Pattern\PatternOptions $options
* @return Pattern\PatternInterface
* @throws Exception\InvalidArgumentException
*/
Expand Down Expand Up @@ -73,7 +77,6 @@ public static function getPluginManager()
/**
* Set the pattern plugin manager
*
* @param PatternPluginManager $plugins
* @return void
*/
public static function setPluginManager(PatternPluginManager $plugins)
Expand Down

0 comments on commit d789161

Please sign in to comment.