Skip to content

Instantly share code, notes, and snippets.

View mapData.vue
<div class="map-data-wrapper">
<div class="map-data" v-on:click="showData()">
<!-- vue layers -->
<vl-map :load-tiles-while-animating="true" :load-tiles-while-interacting="true"
View doctrine.yaml
# 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.
# configure these for your database server
View SiteError.php
private function logError(){
$errorEvent = new SiteErrorEvent();
// init event dispatcher
$dispatcher = new EventDispatcher();
View RegistrationType.php
namespace UserBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
class RegistrationType extends AbstractType
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)