mirror of
https://github.com/KnpLabs/KnpMarkdownBundle.git
synced 2024-06-29 02:40:10 +02:00
45 lines
1.1 KiB
PHP
45 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace Bundle\MarkdownBundle\DependencyInjection;
|
|
|
|
use Symfony\Components\DependencyInjection\Loader\LoaderExtension;
|
|
use Symfony\Components\DependencyInjection\Loader\XmlFileLoader;
|
|
use Symfony\Components\DependencyInjection\BuilderConfiguration;
|
|
|
|
class MarkdownExtension extends LoaderExtension
|
|
{
|
|
|
|
public function parserLoad($config, $configuration)
|
|
{
|
|
$loader = new XmlFileLoader(__DIR__.'/../Resources/config');
|
|
$configuration->merge($loader->load('parser.xml'));
|
|
}
|
|
|
|
public function helperLoad($config, $configuration)
|
|
{
|
|
$loader = new XmlFileLoader(__DIR__.'/../Resources/config');
|
|
$configuration->merge($loader->load('parser.xml'));
|
|
}
|
|
|
|
/**
|
|
* Returns the base path for the XSD files.
|
|
*
|
|
* @return string The XSD base path
|
|
*/
|
|
public function getXsdValidationBasePath()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
public function getNamespace()
|
|
{
|
|
return 'http://www.symfony-project.org/schema/dic/symfony';
|
|
}
|
|
|
|
public function getAlias()
|
|
{
|
|
return 'markdown';
|
|
}
|
|
|
|
}
|