src/Model/RoutingDefinition/XmlBundleRoutingDefinition.php
<?php
namespace PiotrPolak\ConditionalRoutingBundle\Model\RoutingDefinition;
/**
* Represents a routing block of XML type.
*
* @author Piotr Polak <piotr@polak.ro>
*/
class XmlBundleRoutingDefinition extends AbstractBundleRoutingDefinition
{
/**
* XmlBundleRoutingDefinition constructor.
*
* @param $bundleName
*/
public function __construct($bundleName)
{
parent::__construct($bundleName, 'xml');
}
/**
* {@inheritdoc}
*/
public function getResource()
{
return '@' . $this->getBundleName() . '/Resources/config/routing.xml';
}
}