├── .github └── workflows │ └── code_analysis.yaml ├── .gitignore ├── .gush.yml ├── .travis.yml ├── ArgumentValidator.php ├── ArgumentValidatorInterface.php ├── ArgumentsValidator.php ├── ArgumentsValidatorInterface.php ├── BatchServiceDefinitionValidator.php ├── BatchServiceDefinitionValidatorInterface.php ├── Compiler ├── Compatibility │ └── FixSymfonyValidatorDefinitionPass.php └── ValidateServiceDefinitionsPass.php ├── Configuration.php ├── ConstructorResolver.php ├── ConstructorResolverInterface.php ├── DefinitionArgumentsValidator.php ├── DefinitionArgumentsValidatorInterface.php ├── Error ├── Printer │ ├── ErrorListPrinterInterface.php │ └── SimpleErrorListPrinter.php ├── ValidationError.php ├── ValidationErrorFactory.php ├── ValidationErrorFactoryInterface.php ├── ValidationErrorInterface.php ├── ValidationErrorList.php └── ValidationErrorListInterface.php ├── Exception ├── ClassNotFoundException.php ├── DefinitionHasNoClassException.php ├── DefinitionValidationExceptionInterface.php ├── FunctionNotFoundException.php ├── InvalidExpressionException.php ├── InvalidExpressionSyntaxException.php ├── InvalidServiceDefinitionsException.php ├── MethodNotFoundException.php ├── MissingFactoryMethodException.php ├── MissingRequiredArgumentException.php ├── NonPublicConstructorException.php ├── NonStaticFactoryMethodException.php ├── ServiceNotFoundException.php └── TypeHintMismatchException.php ├── LICENSE ├── MethodCallsValidator.php ├── MethodCallsValidatorInterface.php ├── README.md ├── ResultingClassResolver.php ├── ResultingClassResolverInterface.php ├── ServiceDefinitionValidator.php ├── ServiceDefinitionValidatorFactory.php ├── ServiceDefinitionValidatorFactoryInterface.php ├── ServiceDefinitionValidatorInterface.php ├── Tests ├── ArgumentValidatorTest.php ├── ArgumentsValidatorTest.php ├── BatchServiceDefinitionValidatorTest.php ├── ConstructorResolverTest.php ├── DefinitionArgumentsValidatorTest.php ├── Error │ ├── Printer │ │ └── SimpleErrorListPrinterTest.php │ ├── ValidationErrorFactoryTest.php │ ├── ValidationErrorListInterface.php │ ├── ValidationErrorListTest.php │ └── ValidationErrorTest.php ├── Fixtures │ ├── ClassWithConstructor.php │ ├── ClassWithContainerInterfaceConstructorArgument.php │ ├── ClassWithNonPublicConstructor.php │ ├── ClassWithOptionalArrayConstructorArgument.php │ ├── ClassWithRequiredArrayConstructorArgument.php │ ├── ClassWithRequiredConstructorArgument.php │ ├── ClassWithRequiredConstructorArguments.php │ ├── ClassWithTypeHintedAliasConstructorArgument.php │ ├── ClassWithTypeHintedConstructorArgument.php │ ├── ClassWithTypeHintedOptionalConstructorArgument.php │ ├── ExpectedClass.php │ ├── FactoryCallback.php │ ├── FactoryClass.php │ ├── InvalidServiceDefinitionException.php │ └── WrongClass.php ├── Functional │ ├── Fixtures │ │ ├── Catalogue.php │ │ ├── EntityManager.php │ │ ├── Factory.php │ │ ├── Issue49.php │ │ ├── MailManager.php │ │ ├── Mailer.php │ │ ├── Registry.php │ │ ├── Translator.php │ │ ├── Transport.php │ │ ├── Validator.php │ │ ├── ValidatorBuilderInterface.php │ │ ├── correct_service_definitions.xml │ │ ├── correct_service_definitions_post_symfony_3_0.xml │ │ ├── correct_service_definitions_pre_symfony_3_0.xml │ │ ├── incorrect_service_definitions.xml │ │ ├── issue_49.yml │ │ ├── reported_problems.yml │ │ ├── reported_problems_pre_symfony_3_0.yml │ │ ├── service_definition_with_expression.xml │ │ └── service_definition_with_factory.xml │ └── FunctionalTest.php ├── ResultingClassResolverTest.php └── ServiceDefinitionValidatorTest.php ├── composer.json └── phpunit.xml.dist /.github/workflows/code_analysis.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/.github/workflows/code_analysis.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/.gitignore -------------------------------------------------------------------------------- /.gush.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/.gush.yml -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/.travis.yml -------------------------------------------------------------------------------- /ArgumentValidator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/ArgumentValidator.php -------------------------------------------------------------------------------- /ArgumentValidatorInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/ArgumentValidatorInterface.php -------------------------------------------------------------------------------- /ArgumentsValidator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/ArgumentsValidator.php -------------------------------------------------------------------------------- /ArgumentsValidatorInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/ArgumentsValidatorInterface.php -------------------------------------------------------------------------------- /BatchServiceDefinitionValidator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/BatchServiceDefinitionValidator.php -------------------------------------------------------------------------------- /BatchServiceDefinitionValidatorInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/BatchServiceDefinitionValidatorInterface.php -------------------------------------------------------------------------------- /Compiler/Compatibility/FixSymfonyValidatorDefinitionPass.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Compiler/Compatibility/FixSymfonyValidatorDefinitionPass.php -------------------------------------------------------------------------------- /Compiler/ValidateServiceDefinitionsPass.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Compiler/ValidateServiceDefinitionsPass.php -------------------------------------------------------------------------------- /Configuration.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Configuration.php -------------------------------------------------------------------------------- /ConstructorResolver.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/ConstructorResolver.php -------------------------------------------------------------------------------- /ConstructorResolverInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/ConstructorResolverInterface.php -------------------------------------------------------------------------------- /DefinitionArgumentsValidator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/DefinitionArgumentsValidator.php -------------------------------------------------------------------------------- /DefinitionArgumentsValidatorInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/DefinitionArgumentsValidatorInterface.php -------------------------------------------------------------------------------- /Error/Printer/ErrorListPrinterInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Error/Printer/ErrorListPrinterInterface.php -------------------------------------------------------------------------------- /Error/Printer/SimpleErrorListPrinter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Error/Printer/SimpleErrorListPrinter.php -------------------------------------------------------------------------------- /Error/ValidationError.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Error/ValidationError.php -------------------------------------------------------------------------------- /Error/ValidationErrorFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Error/ValidationErrorFactory.php -------------------------------------------------------------------------------- /Error/ValidationErrorFactoryInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Error/ValidationErrorFactoryInterface.php -------------------------------------------------------------------------------- /Error/ValidationErrorInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Error/ValidationErrorInterface.php -------------------------------------------------------------------------------- /Error/ValidationErrorList.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Error/ValidationErrorList.php -------------------------------------------------------------------------------- /Error/ValidationErrorListInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Error/ValidationErrorListInterface.php -------------------------------------------------------------------------------- /Exception/ClassNotFoundException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Exception/ClassNotFoundException.php -------------------------------------------------------------------------------- /Exception/DefinitionHasNoClassException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Exception/DefinitionHasNoClassException.php -------------------------------------------------------------------------------- /Exception/DefinitionValidationExceptionInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Exception/DefinitionValidationExceptionInterface.php -------------------------------------------------------------------------------- /Exception/FunctionNotFoundException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Exception/FunctionNotFoundException.php -------------------------------------------------------------------------------- /Exception/InvalidExpressionException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Exception/InvalidExpressionException.php -------------------------------------------------------------------------------- /Exception/InvalidExpressionSyntaxException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Exception/InvalidExpressionSyntaxException.php -------------------------------------------------------------------------------- /Exception/InvalidServiceDefinitionsException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Exception/InvalidServiceDefinitionsException.php -------------------------------------------------------------------------------- /Exception/MethodNotFoundException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Exception/MethodNotFoundException.php -------------------------------------------------------------------------------- /Exception/MissingFactoryMethodException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Exception/MissingFactoryMethodException.php -------------------------------------------------------------------------------- /Exception/MissingRequiredArgumentException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Exception/MissingRequiredArgumentException.php -------------------------------------------------------------------------------- /Exception/NonPublicConstructorException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Exception/NonPublicConstructorException.php -------------------------------------------------------------------------------- /Exception/NonStaticFactoryMethodException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Exception/NonStaticFactoryMethodException.php -------------------------------------------------------------------------------- /Exception/ServiceNotFoundException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Exception/ServiceNotFoundException.php -------------------------------------------------------------------------------- /Exception/TypeHintMismatchException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Exception/TypeHintMismatchException.php -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/LICENSE -------------------------------------------------------------------------------- /MethodCallsValidator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/MethodCallsValidator.php -------------------------------------------------------------------------------- /MethodCallsValidatorInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/MethodCallsValidatorInterface.php -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/README.md -------------------------------------------------------------------------------- /ResultingClassResolver.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/ResultingClassResolver.php -------------------------------------------------------------------------------- /ResultingClassResolverInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/ResultingClassResolverInterface.php -------------------------------------------------------------------------------- /ServiceDefinitionValidator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/ServiceDefinitionValidator.php -------------------------------------------------------------------------------- /ServiceDefinitionValidatorFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/ServiceDefinitionValidatorFactory.php -------------------------------------------------------------------------------- /ServiceDefinitionValidatorFactoryInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/ServiceDefinitionValidatorFactoryInterface.php -------------------------------------------------------------------------------- /ServiceDefinitionValidatorInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/ServiceDefinitionValidatorInterface.php -------------------------------------------------------------------------------- /Tests/ArgumentValidatorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Tests/ArgumentValidatorTest.php -------------------------------------------------------------------------------- /Tests/ArgumentsValidatorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Tests/ArgumentsValidatorTest.php -------------------------------------------------------------------------------- /Tests/BatchServiceDefinitionValidatorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Tests/BatchServiceDefinitionValidatorTest.php -------------------------------------------------------------------------------- /Tests/ConstructorResolverTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Tests/ConstructorResolverTest.php -------------------------------------------------------------------------------- /Tests/DefinitionArgumentsValidatorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Tests/DefinitionArgumentsValidatorTest.php -------------------------------------------------------------------------------- /Tests/Error/Printer/SimpleErrorListPrinterTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Tests/Error/Printer/SimpleErrorListPrinterTest.php -------------------------------------------------------------------------------- /Tests/Error/ValidationErrorFactoryTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Tests/Error/ValidationErrorFactoryTest.php -------------------------------------------------------------------------------- /Tests/Error/ValidationErrorListInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Tests/Error/ValidationErrorListInterface.php -------------------------------------------------------------------------------- /Tests/Error/ValidationErrorListTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Tests/Error/ValidationErrorListTest.php -------------------------------------------------------------------------------- /Tests/Error/ValidationErrorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Tests/Error/ValidationErrorTest.php -------------------------------------------------------------------------------- /Tests/Fixtures/ClassWithConstructor.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Tests/Fixtures/ClassWithConstructor.php -------------------------------------------------------------------------------- /Tests/Fixtures/ClassWithContainerInterfaceConstructorArgument.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Tests/Fixtures/ClassWithContainerInterfaceConstructorArgument.php -------------------------------------------------------------------------------- /Tests/Fixtures/ClassWithNonPublicConstructor.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Tests/Fixtures/ClassWithNonPublicConstructor.php -------------------------------------------------------------------------------- /Tests/Fixtures/ClassWithOptionalArrayConstructorArgument.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Tests/Fixtures/ClassWithOptionalArrayConstructorArgument.php -------------------------------------------------------------------------------- /Tests/Fixtures/ClassWithRequiredArrayConstructorArgument.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Tests/Fixtures/ClassWithRequiredArrayConstructorArgument.php -------------------------------------------------------------------------------- /Tests/Fixtures/ClassWithRequiredConstructorArgument.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Tests/Fixtures/ClassWithRequiredConstructorArgument.php -------------------------------------------------------------------------------- /Tests/Fixtures/ClassWithRequiredConstructorArguments.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Tests/Fixtures/ClassWithRequiredConstructorArguments.php -------------------------------------------------------------------------------- /Tests/Fixtures/ClassWithTypeHintedAliasConstructorArgument.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Tests/Fixtures/ClassWithTypeHintedAliasConstructorArgument.php -------------------------------------------------------------------------------- /Tests/Fixtures/ClassWithTypeHintedConstructorArgument.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Tests/Fixtures/ClassWithTypeHintedConstructorArgument.php -------------------------------------------------------------------------------- /Tests/Fixtures/ClassWithTypeHintedOptionalConstructorArgument.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Tests/Fixtures/ClassWithTypeHintedOptionalConstructorArgument.php -------------------------------------------------------------------------------- /Tests/Fixtures/ExpectedClass.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasnoback/symfony-service-definition-validator/HEAD/Tests/Fixtures/ExpectedClass.php -------------------------------------------------------------------------------- /Tests/Fixtures/FactoryCallback.php: -------------------------------------------------------------------------------- 1 |