- 125g Mie-Nudeln oder Wok-Nudeln
- 250g Brokkolie
- 2 Knoblauchzehen
- 30g Mandeln
- 3 Eier
- 2 Tl Sambal Oelek
- 1 El Zitronensaft
- 3 El Sojasauce
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Service; | |
use App\Entity\Address; | |
use Doctrine\ORM\EntityManagerInterface; | |
use Geocoder\Provider\Nominatim\Nominatim; | |
use Geocoder\Query\GeocodeQuery; | |
use Geocoder\StatefulGeocoder; | |
use Http\Adapter\Guzzle6\Client; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Initializes switch fields | |
* | |
* https://stackoverflow.com/a/8318129/5947371 | |
*/ | |
initSwitch() { | |
let selector = '.custom-control-input[type="radio"]'; | |
$(selector).each((index, radio) => { | |
let $radio = $(radio), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) { | |
$data = $event->getData(); | |
$form = $event->getForm(); | |
$config = $form->get('groups')->getConfig(); // get the field config | |
$name = $config->getName(); // get the name string | |
$type = get_class($config->getType()->getInnerType()); // get the type class | |
$options = $config->getOptions(); // get the options array | |
$options['label'] = "Login Name"; // e.g. change the label |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { addDisabled, removeDisabled } from '../../util/disable'; | |
/** | |
* Available options: | |
* | |
* options = { | |
* settings = { | |
* type: 'POST' || null, // Type of request or [data-ajax-method] - default GET | |
* url: '/script' || null, // Url for the request or form[action] or a[href] - default current url | |
* data: data || [] // Additional data to be send or serialized form - default [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace AppBundle\Controller; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\Routing\Annotation\Route; | |
class DefaultController extends Controller | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace AppBundle\Util; | |
class App_Swift_Transport_FailoverTransport extends \Swift_Transport_FailoverTransport | |
{ | |
/** | |
* @param \Swift_Mailer[] $mailers | |
*/ | |
public function __construct(array $mailers) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Util; | |
class ParseLinks | |
{ | |
private $rootLink; | |
private $links = []; | |
private $deep = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build: | |
nodes: | |
analysis: | |
project_setup: | |
override: | |
- 'true' | |
tests: | |
override: | |
- ./vendor/bin/simple-phpunit | |
- sensiolabs-security-checker-run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace AppBundle\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
use Gedmo\Mapping\Annotation as Gedmo; | |
use Symfony\Component\Validator\Constraints as Assert; | |
/** | |
* Cron |
NewerOlder