for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Yoanm\SymfonyJsonRpcHttpServerOpenAPIDoc\DependencyInjection;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
/**
* Class JsonRpcHttpServerOpenAPIDocExtension
*/
class JsonRpcHttpServerOpenAPIDocExtension implements ExtensionInterface
{
// Extension identifier (used in configuration for instance)
const EXTENSION_IDENTIFIER = 'json_rpc_http_server_open_api_doc';
* {@inheritdoc}
public function load(array $configs, ContainerBuilder $container)
$loader = new YamlFileLoader(
$container,
new FileLocator(__DIR__.'/../Resources/config')
);
$loader->load('services.sdk.app.yaml');
$loader->load('services.sdk.infra.yaml');
$loader->load('services.public.yaml');
}
public function getNamespace()
return 'http://example.org/schema/dic/'.$this->getAlias();
public function getXsdValidationBasePath()
return '';
public function getAlias()
return self::EXTENSION_IDENTIFIER;