File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11
11
],
12
12
"require" : {
13
13
"php" : " ^7.4 || ^8.0" ,
14
- "nette /finder" : " ^2.5 " ,
14
+ "symfony /finder" : " ~3.4.5|^4.2 " ,
15
15
"phpstan/phpstan" : " ^1.0" ,
16
16
"symfony/yaml" : " ~3.4.5|^4.2" ,
17
17
"webflo/drupal-finder" : " ^1.2"
Original file line number Diff line number Diff line change 4
4
5
5
use Drupal \Core \DependencyInjection \ContainerNotInitializedException ;
6
6
use DrupalFinder \DrupalFinder ;
7
- use Nette \Utils \Finder ;
8
7
use PHPStan \DependencyInjection \Container ;
8
+ use Symfony \Component \Finder \Finder ;
9
9
use Symfony \Component \Yaml \Yaml ;
10
10
11
11
class DrupalAutoloader
@@ -143,7 +143,7 @@ public function register(Container $container): void
143
143
}
144
144
$ drushDir = dirname ($ reflect ->getFileName (), $ levels );
145
145
/** @var \SplFileInfo $file */
146
- foreach (Finder::findFiles ('*.inc ' )->in ($ drushDir . '/includes ' ) as $ file ) {
146
+ foreach (Finder::create ()-> files ()-> name ('*.inc ' )->in ($ drushDir . '/includes ' ) as $ file ) {
147
147
require_once $ file ->getPathname ();
148
148
}
149
149
}
@@ -204,7 +204,7 @@ class: Drupal\jsonapi\Routing\JsonApiParamEnhancer
204
204
protected function loadLegacyIncludes (): void
205
205
{
206
206
/** @var \SplFileInfo $file */
207
- foreach (Finder::findFiles ('*.inc ' )->in ($ this ->drupalRoot . '/core/includes ' ) as $ file ) {
207
+ foreach (Finder::create ()-> files ()-> name ('*.inc ' )->in ($ this ->drupalRoot . '/core/includes ' ) as $ file ) {
208
208
require_once $ file ->getPathname ();
209
209
}
210
210
}
You can’t perform that action at this time.
0 commit comments