You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.1 KiB
42 lines
1.1 KiB
<?php |
|
|
|
namespace cgoIT\rateit; |
|
|
|
use Contao\CoreBundle\ContaoCoreBundle; |
|
use Contao\ManagerPlugin\Bundle\Config\BundleConfig; |
|
use Contao\ManagerPlugin\Bundle\BundlePluginInterface; |
|
use Contao\ManagerPlugin\Bundle\Parser\ParserInterface; |
|
use Contao\ManagerPlugin\Routing\RoutingPluginInterface; |
|
use Symfony\Component\Config\Loader\LoaderResolverInterface; |
|
use Symfony\Component\HttpKernel\KernelInterface; |
|
|
|
/** |
|
* Plugin for the Contao Manager. |
|
* |
|
* @author Carsten Götzinger |
|
*/ |
|
class ContaoManagerPlugin implements BundlePluginInterface, RoutingPluginInterface |
|
{ |
|
/** |
|
* {@inheritdoc} |
|
*/ |
|
public function getBundles(ParserInterface $parser) |
|
{ |
|
return [ |
|
BundleConfig::create(CgoITRateItBundle::class) |
|
->setLoadAfter([ContaoCoreBundle::class]) |
|
->setReplace(['rate-it']), |
|
]; |
|
} |
|
|
|
/** |
|
* {@inheritdoc} |
|
*/ |
|
public function getRouteCollection(LoaderResolverInterface $resolver, KernelInterface $kernel) |
|
{ |
|
return $resolver |
|
->resolve(__DIR__.'/Resources/config/routing.yml') |
|
->load(__DIR__.'/Resources/config/routing.yml') |
|
; |
|
} |
|
}
|
|
|