2010-10-04 20:27:00 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Bundle\WebServiceBundle\DependencyInjection;
|
|
|
|
|
2010-10-04 21:13:45 +02:00
|
|
|
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
|
|
|
|
|
2010-10-04 20:27:00 +02:00
|
|
|
use Symfony\Component\DependencyInjection\Extension\Extension;
|
|
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|
|
|
|
|
|
|
class WebServiceExtension extends Extension
|
|
|
|
{
|
2010-10-04 20:39:04 +02:00
|
|
|
public function configLoad(array $config, ContainerBuilder $configuration)
|
|
|
|
{
|
2010-10-04 21:13:45 +02:00
|
|
|
$loader = new XmlFileLoader($configuration, __DIR__ . "/../Resources/config");
|
|
|
|
$loader->load("services.xml");
|
|
|
|
|
|
|
|
$configuration->setAlias("http_kernel", "webservice_http_kernel");
|
2010-10-04 20:39:04 +02:00
|
|
|
}
|
2010-10-04 20:27:00 +02:00
|
|
|
|
|
|
|
public function getXsdValidationBasePath()
|
|
|
|
{
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getNamespace()
|
|
|
|
{
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getAlias()
|
|
|
|
{
|
|
|
|
return 'webservice';
|
|
|
|
}
|
|
|
|
}
|