diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php new file mode 100644 index 0000000..2d29fdf --- /dev/null +++ b/DependencyInjection/Configuration.php @@ -0,0 +1,23 @@ +root('ez_systems_restapi_extension_example'); + return $treeBuilder; + } +} diff --git a/DependencyInjection/EzSystemsRESTAPIExtensionExampleExtension.php b/DependencyInjection/EzSystemsRESTAPIExtensionExampleExtension.php new file mode 100644 index 0000000..2886809 --- /dev/null +++ b/DependencyInjection/EzSystemsRESTAPIExtensionExampleExtension.php @@ -0,0 +1,28 @@ +processConfiguration($configuration, $configs); + + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); + $loader->load('services.yml'); + } +} diff --git a/EzSystemsRESTAPIExtensionExampleBundle.php b/EzSystemsRESTAPIExtensionExampleBundle.php new file mode 100644 index 0000000..5e60de4 --- /dev/null +++ b/EzSystemsRESTAPIExtensionExampleBundle.php @@ -0,0 +1,13 @@ +startHashElement("Hello"); + $generator->startAttribute("name", $data->name); + $generator->endAttribute("name"); + $generator->endHashElement("Hello"); + } +} \ No newline at end of file diff --git a/Rest/Values/Hello.php b/Rest/Values/Hello.php new file mode 100644 index 0000000..658a283 --- /dev/null +++ b/Rest/Values/Hello.php @@ -0,0 +1,27 @@ +name = $name; + } +} \ No newline at end of file