Coder Social home page Coder Social logo

nils-van-zuijlen / caravane Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 944 KB

Site de la Caravane de Quimper

Home Page: http://piosdequimper.e-monsite.com

License: GNU General Public License v3.0

PHP 60.57% HTML 31.00% CSS 1.16% JavaScript 7.27%
sgdf symfony fosuserbundle website scout

caravane's People

Contributors

nils-van-zuijlen avatar

Stargazers

 avatar

Watchers

 avatar  avatar

caravane's Issues

[Insight] Symfony applications should not throw AccessDeniedHttpException - in src/…/Controller/ForumController.php, line 158

in src/ForumBundle/Controller/ForumController.php, line 158

The AccessDeniedHttpException bypasses the Symfony Security component and always results in a 403 response. You should throw AccessDeniedException (without Http) instead, so that the Security Component displays a login form.

		if (
			$forum->getUser() != $this->getUser()
			&& !$this->get('security.authorization_checker')->isGranted('ROLE_COMMUNICATION')
		)
		{
			throw new HttpException\AccessDeniedHttpException(
				'Vous n\'êtes pas autorisé à modifier le forum '.$forum
				);
		}

		$form = $this->createForm(ForumType::class, $forum);

Posted from SensioLabsInsight

Traductions

Externalisation de tout le texte vers des fichiers de traduction.

Bannissement d'utilisateurs

Possibilité de bannir des utilisateurs à partir du chat.
Affichage de l'état.
Réhabilitation des utilisateurs.

[Insight] Boolean property should not be prefixed by "is" - in src/CoreBundle/Mailer/ChefsEmail.php, line 24

in src/CoreBundle/Mailer/ChefsEmail.php, line 24

Boolean property accessor should not be setIsXXX nor getIsXXX but setXXX and isXXX.

	public function setSubject($subject)
	{ $this->subject = $subject; }
	public function setBody($body)
	{ $this->body = $body; }
	public function setIsBcc($isBcc)
	{ $this->isBcc = $isBcc; }
	public function setToUsers($toUsers)
	{ $this->toUsers = $toUsers; }
	public function setToGroups($toGroups)
	{ $this->toGroups = $toGroups; }

Posted from SensioLabsInsight

Chatbot

New reactions for the chatbot

[Insight] Unused method, property, variable or parameter - in src/…/Controller/GroupController.php, line 117

in src/UserBundle/Controller/GroupController.php, line 117

This formFactory local variable is declared but never used. You should remove it.

	public function newAction(Request $request)
	{
		/** @var $groupManager \FOS\UserBundle\Model\GroupManagerInterface */
		$groupManager = $this->get('fos_user.group_manager');
		/** @var $formFactory \FOS\UserBundle\Form\Factory\FactoryInterface */
		$formFactory = $this->get('fos_user.group.form.factory');
		/** @var $dispatcher \Symfony\Component\EventDispatcher\EventDispatcherInterface */
		$dispatcher = $this->get('event_dispatcher');

		$group = $groupManager->createGroup('');

Posted from SensioLabsInsight

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.