Skip to content

Instantly share code, notes, and snippets.

security:
acl:
connection: default
encoders:
FOS\UserBundle\Model\UserInterface: sha512
role_hierarchy:
ROLE_PATIENT: [ROLE_USER]
ROLE_THERAPIST: [ROLE_USER]
ROLE_PARTNER: [ROLE_USER]
@awdng
awdng / gist:6241019
Last active December 21, 2015 03:19
{
"Monday": {
"from1": "14:00",
"to1": "16:00",
"from2": "18:00",
"to2": "19:00"
},
"Tuesday": {
"from1": "14:00",
"to1": "16:00",
<?php
/**
* This file is part of the Biologica project.
*
* (c) Arne Wieding arne@wieding.com
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
<?php
namespace Application\Biologica\MainBundle\Form\Therapy;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class ConceptType extends AbstractType
{
@awdng
awdng / es.json
Created December 15, 2015 16:35
elasticsearch query built by elastica 2.x
{
"query": {
"function_score": {
"query": {
"filtered": {
"query": {
"bool": {
"minimum_number_should_match": 0
}
},