diff --git a/composer.json b/composer.json index 0a8c0e52..2d3de8ac 100755 --- a/composer.json +++ b/composer.json @@ -11,6 +11,7 @@ "silverstripe/event-dispatcher": "^2", "guzzlehttp/guzzle": "^7.5.0", "guzzlehttp/psr7": "^2.4.1", + "symfony/filesystem": "^7.0", "m1/env": "^2.2.0" }, "require-dev": { diff --git a/src/Schema/BulkLoader/FilepathLoader.php b/src/Schema/BulkLoader/FilepathLoader.php index d43c9ecf..e27bb05c 100644 --- a/src/Schema/BulkLoader/FilepathLoader.php +++ b/src/Schema/BulkLoader/FilepathLoader.php @@ -4,7 +4,7 @@ use SilverStripe\Control\Director; use SilverStripe\Core\Manifest\ModuleResourceLoader; -use SilverStripe\Core\Path; +use Symfony\Component\Filesystem\Path; /** * Loads classes by fuzzy match (glob), relative to the root e.g. `src/*.model.php` diff --git a/src/Schema/SchemaBuilder.php b/src/Schema/SchemaBuilder.php index cec03da8..f259cda3 100644 --- a/src/Schema/SchemaBuilder.php +++ b/src/Schema/SchemaBuilder.php @@ -9,13 +9,13 @@ use SilverStripe\Control\Director; use SilverStripe\Core\Injector\Injectable; use SilverStripe\Core\Manifest\ModuleResourceLoader; -use SilverStripe\Core\Path; use SilverStripe\EventDispatcher\Dispatch\Dispatcher; use SilverStripe\EventDispatcher\Symfony\Event; use SilverStripe\GraphQL\Schema\Exception\EmptySchemaException; use SilverStripe\GraphQL\Schema\Exception\SchemaBuilderException; use SilverStripe\GraphQL\Schema\Exception\SchemaNotFoundException; use SilverStripe\GraphQL\Schema\Interfaces\SchemaStorageCreator; +use Symfony\Component\Filesystem\Path; use Symfony\Component\Finder\Finder; use Symfony\Component\Finder\SplFileInfo; use Symfony\Component\Yaml\Yaml; diff --git a/src/Schema/Services/SchemaTranscriber.php b/src/Schema/Services/SchemaTranscriber.php index 16632152..56743a1f 100644 --- a/src/Schema/Services/SchemaTranscriber.php +++ b/src/Schema/Services/SchemaTranscriber.php @@ -5,11 +5,11 @@ use SilverStripe\Assets\Storage\GeneratedAssetHandler; use SilverStripe\Core\Injector\Injectable; -use SilverStripe\Core\Path; use SilverStripe\GraphQL\QueryHandler\QueryHandler; use GraphQL\Type\Schema as GraphQLSchema; use Exception; use Symfony\Component\Filesystem\Filesystem; +use Symfony\Component\Filesystem\Path; /** * Persists a graphql schema to a json document consumable by Apollo diff --git a/src/Schema/Storage/CodeGenerationStore.php b/src/Schema/Storage/CodeGenerationStore.php index 7cdae02c..8c2c8145 100644 --- a/src/Schema/Storage/CodeGenerationStore.php +++ b/src/Schema/Storage/CodeGenerationStore.php @@ -10,7 +10,6 @@ use SilverStripe\Core\Config\Configurable; use SilverStripe\Core\Injector\Injectable; use SilverStripe\Core\Injector\Injector; -use SilverStripe\Core\Path; use SilverStripe\GraphQL\Schema\Exception\EmptySchemaException; use SilverStripe\GraphQL\Schema\Exception\SchemaNotFoundException; use SilverStripe\GraphQL\Schema\Schema; @@ -22,6 +21,7 @@ use Symfony\Component\Finder\Finder; use Psr\SimpleCache\InvalidArgumentException; use RuntimeException; +use Symfony\Component\Filesystem\Path; class CodeGenerationStore implements SchemaStorageInterface {