diff --git a/src/PatternLab/PatternData.php b/src/PatternLab/PatternData.php index 7980305c..1bbd0116 100644 --- a/src/PatternLab/PatternData.php +++ b/src/PatternLab/PatternData.php @@ -180,17 +180,20 @@ public static function gather($options = array()) { $event = new PatternDataEvent($options); $dispatcherInstance->dispatch("patternData.lineageHelperEnd",$event); + + // `PatternStateHelper` is deprecated. It was for adding state to all patterns in the lineage of the pattern with state and that is no longer needed. Commenting out use and deprecating class in case there's a use I haven't figured out. + // dispatch that the pattern state helper is about to start - $event = new PatternDataEvent($options); - $dispatcherInstance->dispatch("patternData.patternStateHelperStart",$event); +// $event = new PatternDataEvent($options); +// $dispatcherInstance->dispatch("patternData.patternStateHelperStart",$event); // using the lineage info update the pattern states on PatternData::$store - $patternStateHelper = new PatternStateHelper(); - $patternStateHelper->run(); +// $patternStateHelper = new PatternStateHelper(); +// $patternStateHelper->run(); // dispatch that the pattern state helper is ended - $event = new PatternDataEvent($options); - $dispatcherInstance->dispatch("patternData.patternStateHelperEnd",$event); +// $event = new PatternDataEvent($options); +// $dispatcherInstance->dispatch("patternData.patternStateHelperEnd",$event); // set-up code pattern paths $ppdExporter = new PatternPathSrcExporter(); diff --git a/src/PatternLab/PatternData/Helpers/PatternStateHelper.php b/src/PatternLab/PatternData/Helpers/PatternStateHelper.php index e8fd2b5c..abe4a665 100644 --- a/src/PatternLab/PatternData/Helpers/PatternStateHelper.php +++ b/src/PatternLab/PatternData/Helpers/PatternStateHelper.php @@ -17,6 +17,11 @@ use \PatternLab\PatternData; use \PatternLab\Timer; +/** + * Class PatternStateHelper + * @package PatternLab\PatternData\Helpers + * @deprecated 3.0.0 It was for adding state to all patterns in the lineage of the pattern with state and that is no longer needed. + */ class PatternStateHelper extends \PatternLab\PatternData\Helper { public function __construct($options = array()) {