From 9dea678290ce4b7af729dac1ccbcd980f6f00ebe Mon Sep 17 00:00:00 2001 From: Pieter Frenssen Date: Sat, 16 Sep 2017 22:16:14 +0300 Subject: [PATCH] The standalone Inflector library has its own namespace. --- src/AnnotationGenerator/PhpDocAnnotationGenerator.php | 2 +- src/Command/GenerateTypesCommand.php | 2 +- src/TypesGenerator.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/AnnotationGenerator/PhpDocAnnotationGenerator.php b/src/AnnotationGenerator/PhpDocAnnotationGenerator.php index dc0fedfa..7b4fb8ce 100644 --- a/src/AnnotationGenerator/PhpDocAnnotationGenerator.php +++ b/src/AnnotationGenerator/PhpDocAnnotationGenerator.php @@ -13,7 +13,7 @@ namespace ApiPlatform\SchemaGenerator\AnnotationGenerator; -use Doctrine\Common\Util\Inflector; +use Doctrine\Common\Inflector\Inflector; use League\HTMLToMarkdown\HtmlConverter; use Psr\Log\LoggerInterface; diff --git a/src/Command/GenerateTypesCommand.php b/src/Command/GenerateTypesCommand.php index d37febea..6207082e 100644 --- a/src/Command/GenerateTypesCommand.php +++ b/src/Command/GenerateTypesCommand.php @@ -17,7 +17,7 @@ use ApiPlatform\SchemaGenerator\GoodRelationsBridge; use ApiPlatform\SchemaGenerator\TypesGenerator; use ApiPlatform\SchemaGenerator\TypesGeneratorConfiguration; -use Doctrine\Common\Util\Inflector; +use Doctrine\Common\Inflector\Inflector; use Symfony\Component\Config\Definition\Processor; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; diff --git a/src/TypesGenerator.php b/src/TypesGenerator.php index c25977ec..90393096 100644 --- a/src/TypesGenerator.php +++ b/src/TypesGenerator.php @@ -16,7 +16,7 @@ use ApiPlatform\SchemaGenerator\AnnotationGenerator\AnnotationGeneratorInterface; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; -use Doctrine\Common\Util\Inflector; +use Doctrine\Common\Inflector\Inflector; use MyCLabs\Enum\Enum; use PhpCsFixer\Cache\NullCacheManager; use PhpCsFixer\Differ\NullDiffer;