From 8895a69d047711a2fc33f7c3dd2d1ab171d597a1 Mon Sep 17 00:00:00 2001 From: Christian Kerl Date: Fri, 8 Apr 2011 00:41:16 +0200 Subject: [PATCH] replaced old LoaderInterface with Symfony Config Component's LoaderInterface; added annotation based loader implementations; --- Resources/config/annotations.xml | 30 +++++ Resources/config/webservice.xml | 32 ++++- .../Loader/AnnotationClassLoader.php | 127 ++++++++++++++++++ .../Loader/AnnotationFileLoader.php | 122 +++++++++++++++++ ServiceDefinition/Loader/FileLoader.php | 26 ---- ServiceDefinition/Loader/LoaderInterface.php | 23 ---- ServiceDefinition/Loader/XmlFileLoader.php | 22 ++- 7 files changed, 321 insertions(+), 61 deletions(-) create mode 100644 Resources/config/annotations.xml create mode 100644 ServiceDefinition/Loader/AnnotationClassLoader.php create mode 100644 ServiceDefinition/Loader/AnnotationFileLoader.php delete mode 100644 ServiceDefinition/Loader/FileLoader.php delete mode 100644 ServiceDefinition/Loader/LoaderInterface.php diff --git a/Resources/config/annotations.xml b/Resources/config/annotations.xml new file mode 100644 index 0000000..1bb69de --- /dev/null +++ b/Resources/config/annotations.xml @@ -0,0 +1,30 @@ + + + + + + Doctrine\Common\Annotations\AnnotationReader + Doctrine\Common\Annotations\Parser + + + + + true + + Bundle\WebServiceBundle\ServiceDefinition\Annotation\ + ws + + + + + + + + + + + + + diff --git a/Resources/config/webservice.xml b/Resources/config/webservice.xml index b847f09..0c1a07e 100644 --- a/Resources/config/webservice.xml +++ b/Resources/config/webservice.xml @@ -4,6 +4,8 @@ xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"> + Symfony\Component\HttpKernel\Config\FileLocator + %kernel.cache_dir%/webservice @@ -14,11 +16,13 @@ + + %webservice.cache_dir% + @@ -41,12 +46,27 @@ - - + + + + + + + + + + + + + + + + + + + + +