Skip to content

Commit

Permalink
API Use Symfony's Path class
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Sep 13, 2024
1 parent a20513d commit 4b9a155
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/Schema/BulkLoader/FilepathLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion src/Schema/SchemaBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Schema/Services/SchemaTranscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Schema/Storage/CodeGenerationStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -22,6 +21,7 @@
use Symfony\Component\Finder\Finder;
use Psr\SimpleCache\InvalidArgumentException;
use RuntimeException;
use Symfony\Component\Filesystem\Path;

class CodeGenerationStore implements SchemaStorageInterface
{
Expand Down

0 comments on commit 4b9a155

Please sign in to comment.