BeSimpleSoap/DependencyInjection/WebServiceExtension.php

61 lines
1.5 KiB
PHP
Raw Normal View History

2010-10-04 20:27:00 +02:00
<?php
/*
* This file is part of the WebServiceBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
2010-10-04 20:27:00 +02:00
namespace Bundle\WebServiceBundle\DependencyInjection;
2011-02-03 01:04:12 +01:00
use Bundle\WebServiceBundle\Util\Assert;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\Config\Definition\Processor;
2010-10-04 20:27:00 +02:00
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
2010-10-04 20:27:00 +02:00
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
/**
* WebServiceExtension.
*
* @author Christian Kerl <christian-kerl@web.de>
*/
2010-10-04 20:27:00 +02:00
class WebServiceExtension extends Extension
{
public function load(array $configs, ContainerBuilder $container)
{
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('webservice.xml');
$processor = new Processor();
$configuration = new Configuration();
$config = $processor->process($configuration->getConfigTree(), $configs);
foreach($config['services'] as $serviceContextConfig)
{
$this->createWebServiceContext($serviceContextConfig, $container);
}
}
private function createWebServiceContext(array $config, ContainerBuilder $container)
2010-10-04 20:27:00 +02:00
{
2010-10-04 20:27:00 +02:00
}
2010-10-04 20:27:00 +02:00
public function getNamespace()
{
return null;
}
public function getXsdValidationBasePath()
2010-10-04 20:27:00 +02:00
{
return null;
2010-10-04 20:27:00 +02:00
}
}