| @@ -2,9 +2,8 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace YayMail\TemplatePatterns; |
| 4 | 4 | |
| 5 | 5 | use YayMail\TemplatePatterns\PatternService; |
| 6 | -use YayMail\Utils\Helpers; | |
| 7 | 6 | use YayMail\Utils\SingletonTrait; |
| 8 | 7 | |
| 9 | 8 | /** |
| 10 | 9 | * @method static PatternLoaders get_instance() |
| @@ -20,9 +19,9 @@ | ||
| 20 | 19 | private function __construct() { |
| 21 | 20 | |
| 22 | 21 | $this->service = PatternService::get_instance(); |
| 23 | 22 | |
| 24 | - $dir = new \DirectoryIterator( Helpers::get_plugin_path() . '/src/TemplatePatterns/Patterns' ); | |
| 23 | + $dir = new \DirectoryIterator( YAYMAIL_PLUGIN_PATH . '/src/TemplatePatterns/Patterns' ); | |
| 25 | 24 | foreach ( $dir as $fileinfo ) { |
| 26 | 25 | if ( ! $fileinfo->isDot() ) { |
| 27 | 26 | $file_name = $fileinfo->getFilename(); |
| 28 | 27 | $class_name = basename( $file_name, '.php' ); |