Browse Source

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

master
Carsten Götzinger 4 years ago
parent
commit
1ab4a1c6de
  1. 3
      src/ContaoManagerPlugin.php
  2. 10
      src/Resources/contao/classes/RateIt.php

3
src/ContaoManagerPlugin.php

@ -6,6 +6,7 @@ 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;
@ -14,7 +15,7 @@ use Symfony\Component\HttpKernel\KernelInterface;
*
* @author Carsten Götzinger
*/
class ContaoManagerPlugin implements BundlePluginInterface
class ContaoManagerPlugin implements BundlePluginInterface, RoutingPluginInterface
{
/**
* {@inheritdoc}

10
src/Resources/contao/classes/RateIt.php

@ -44,6 +44,16 @@ class RateIt extends \Frontend {
public function __construct() {
parent::__construct();
// See #4099
if (!defined('BE_USER_LOGGED_IN'))
{
define('BE_USER_LOGGED_IN', false);
}
if (!defined('FE_USER_LOGGED_IN'))
{
define('FE_USER_LOGGED_IN', false);
}
$this->rateItFrontend = new RateItFrontend();
$this->loadLanguageFile('default');

Loading…
Cancel
Save