<?php

namespace Backend;

/*
 * This file is part of Fork CMS.
 *
 * For the full copyright and license information, please view the license
 * file that was distributed with this source code.
 */

/**
 * This class will initiate the backend-application
 */
class Init extends \Common\Core\Init
{
    /**
     * {@inheritdoc}
     */
    protected $allowedTypes = array('Backend', 'BackendAjax', 'BackendCronjob', 'Console');

    /**
     * {@inheritdoc}
     */
    public function initialize($type)
    {
        parent::initialize($type);

        \SpoonFilter::disableMagicQuotes();
    }
}

<?php

namespace Backend;

/*
 * This file is part of Fork CMS.
 *
 * For the full copyright and license information, please view the license
 * file that was distributed with this source code.
 */

use SpoonFilter;
use Symfony\Component\HttpKernel\KernelInterface;

/**
 * This class will initiate the backend-application
 */
class Init extends \Common\Core\Init
{
    /**
     * @param KernelInterface $kernel
     */
    public function __construct(KernelInterface $kernel)
    {
        $this->allowedTypes = array('Backend', 'BackendAjax', 'BackendCronjob', 'Console');

        parent::__construct($kernel);
    }

    /**
     * {@inheritdoc}
     */
    public function initialize($type)
    {
        parent::initialize($type);

        SpoonFilter::disableMagicQuotes();
    }
}

Set the allowed types in the constructor for backend init
Set the allowed types in the constructor for backend init
