Skip to content

Commit

Permalink
Merge pull request #3 from jdecool/update-deps
Browse files Browse the repository at this point in the history
Splitting symfony/symfony dependency
  • Loading branch information
magnusnordlander authored Nov 23, 2017
2 parents 58289c8 + 2001e5b commit f1d4d06
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 20 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/vendor
composer.lock
1 change: 0 additions & 1 deletion DependencyInjection/Compiler/AddDoctrineTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\Reference;

class AddDoctrineTypes implements CompilerPassInterface
{
Expand Down
1 change: 0 additions & 1 deletion DependencyInjection/FervoEnumExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\DefinitionDecorator;
use Symfony\Component\DependencyInjection\Loader;

/**
Expand Down
3 changes: 0 additions & 3 deletions Doctrine/AbstractEnumType.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

namespace Fervo\EnumBundle\Doctrine;

use AppBundle\Enum\CommentStatus;
use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Platforms\MySqlPlatform;
use Doctrine\DBAL\Platforms\SqlitePlatform;
use Doctrine\DBAL\Types\Type;

abstract class AbstractEnumType extends Type
Expand Down
3 changes: 0 additions & 3 deletions Doctrine/EnumArrayType.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

namespace Fervo\EnumBundle\Doctrine;

use AppBundle\Enum\CommentStatus;
use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Platforms\MySqlPlatform;
use Doctrine\DBAL\Platforms\SqlitePlatform;
use Doctrine\DBAL\Types\Type;

class EnumArrayType extends Type
Expand Down
1 change: 0 additions & 1 deletion Form/AbstractEnumType.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Fervo\EnumBundle\Form;

use MyCLabs\Enum\Enum;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\OptionsResolver\OptionsResolver;
Expand Down
4 changes: 0 additions & 4 deletions Form/EnumTypeGuesser.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,13 @@
namespace Fervo\EnumBundle\Form;

use Doctrine\Common\Persistence\ManagerRegistry;
use Doctrine\ORM\Mapping\ClassMetadataInfo;
use Doctrine\Common\Persistence\Mapping\MappingException;
use Doctrine\ORM\Mapping\MappingException as LegacyMappingException;
use Symfony\Component\Form\FormTypeGuesserInterface;
use Symfony\Component\Form\Guess\Guess;
use Symfony\Component\Form\Guess\TypeGuess;
use Doctrine\Common\Util\ClassUtils;

/**
*
*/
class EnumTypeGuesser implements FormTypeGuesserInterface
{
protected $registry;
Expand Down
3 changes: 0 additions & 3 deletions ParamConverter/EnumParamConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use MyCLabs\Enum\Enum;

/**
*
*/
class EnumParamConverter implements ParamConverterInterface
{
/**
Expand Down
3 changes: 0 additions & 3 deletions Twig/EnumExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
use MyCLabs\Enum\Enum;
use Symfony\Component\Translation\TranslatorInterface;

/**
*
*/
class EnumExtension extends \Twig_Extension
{
protected $translator;
Expand Down
9 changes: 8 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,18 @@
},
"require": {
"php": "~5.5||~7.0",
"symfony/symfony": "~2.8|~3.0",
"symfony/form": "~2.8|~3.0",
"symfony/framework-bundle": "~2.8|~3.0",
"symfony/translation": "~2.8|~3.0",
"doctrine/doctrine-bundle": "~1.2",
"myclabs/php-enum": "~1.3",
"doctrine/common": "~2.4"
},
"suggest": {
"jms/serializer-bundle": "If you want to serialize data using JMS Serializer",
"sensio/framework-extra-bundle": "If you wan to use ParamConverter",
"twig/twig": "If you want to use enum in your Twig templates"
},
"extra": {
"branch-alias": {
"dev-master": "2.0.x-dev"
Expand Down

0 comments on commit f1d4d06

Please sign in to comment.