Umstellung auf eigene Ajax-Verarbeitung über Route "rateit"

This commit is contained in:
2018-02-15 06:14:26 +01:00
parent 107e32c3be
commit 1dd2979664
8 changed files with 149 additions and 138 deletions

View File

@ -6,6 +6,8 @@ use Contao\CoreBundle\ContaoCoreBundle;
use Contao\ManagerPlugin\Bundle\Config\BundleConfig;
use Contao\ManagerPlugin\Bundle\BundlePluginInterface;
use Contao\ManagerPlugin\Bundle\Parser\ParserInterface;
use Symfony\Component\Config\Loader\LoaderResolverInterface;
use Symfony\Component\HttpKernel\KernelInterface;
/**
* Plugin for the Contao Manager.
@ -25,4 +27,15 @@ class ContaoManagerPlugin implements BundlePluginInterface
->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')
;
}
}