<commit_before><?php

namespace KekRozsak\FrontBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;

use KekRozsak\FrontBundle\Entity\Article;

class ArticleController extends Controller
{
	/**
	 * @Route("/cikk/{slug}", name="KekRozsakFrontBundle_articleView")
	 * @Template()
	 * @ParamConverter("article")
	 *
	 * @param KekRozsak\FrontBundle\Entity\Article $article
	 */
	public function viewAction(Article $article)
	{
		if ((!is_object($this->_securityContext->getToken()) || !is_object($this->_securityContext->getToken()->getUser())) && !$article->isPublic())
			throw new AccessDeniedException('A cikk megtekintéséhez be kell jelentkezned!');

		return array(
			'article' => $article,
		);
	}
}<commit_msg>Bug fix: _securityController was not defined in ArticleController<commit_after><?php

namespace KekRozsak\FrontBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
use Symfony\Component\Security\Core\Exception\AccessDeniedException;

use KekRozsak\FrontBundle\Entity\Article;

class ArticleController extends Controller
{
	/**
	 * @Route("/cikk/{slug}", name="KekRozsakFrontBundle_articleView")
	 * @Template()
	 * @ParamConverter("article")
	 *
	 * @param KekRozsak\FrontBundle\Entity\Article $article
	 */
	public function viewAction(Article $article)
	{
		$scontext = $this->get('security.context');
		if ((!is_object($scontext->getToken()) || !is_object($scontext->getToken()->getUser())) && !$article->isPublic())
			throw new AccessDeniedException('A cikk megtekintéséhez be kell jelentkezned!');

		return array(
			'article' => $article,
		);
	}
}
{'fraction_non_alphanumeric': 0.13466334164588528, 'fraction_numerical': 0.0, 'mean_word_length': 6.42962962962963, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2766251', 'n_tokens_mistral': 645, 'n_tokens_neox': 613, 'n_words': 99}