Skip to content

Instantly share code, notes, and snippets.

signmeuptwice

Block or report user

Report or block signmeuptwice

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View doctrine.yaml
parameters:
# Adds a fallback DATABASE_URL if the env var is not set.
# This allows you to run cache:warmup even if your
# environment variables are not available yet.
# You should not need to change this value.
env(DATABASE_URL): ''
doctrine:
dbal:
# configure these for your database server
View SiteError.php
<?
private function logError(){
$errorEvent = new SiteErrorEvent();
$errorEvent->setStatus($this->status);
$errorEvent->setReport($this->report);
$errorEvent->setException($this->exception);
// init event dispatcher
$dispatcher = new EventDispatcher();
View RegistrationType.php
<?php
namespace UserBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
class RegistrationType extends AbstractType
{
@signmeuptwice
signmeuptwice / Controller.php
Last active Nov 6, 2018
symfony AJAX form validation always true
View Controller.php
<?
/**
* @Route("/job-offer-form-handle/{offerID}", name="jobOfferFormHandle", methods={"POST"})
* @param Request $request
* @param $offerID
* @return JsonResponse|\Symfony\Component\HttpFoundation\Response
*/
public function jobOfferFormDisplayAction(Request $request, $offerID = null)
You can’t perform that action at this time.