Skip to content

Instantly share code, notes, and snippets.

./bin/docker-machine --debug create \
> --driver=generic \
> --generic-ip-address=192.168.0.10 \
> --generic-ssh-user=pi \
> --engine-install-url=https://get.docker.com/ \
> rpi
Docker Machine Version: 0.7.0, build 0a94d75
Found binary path at ./bin/docker-machine
Launching plugin server for driver generic
Plugin server listening at address 127.0.0.1:57486
--TEST--
Verifies that lazy loading value holder factory can generate proxy for PHP core classes.
--FILE--
<?php
require_once __DIR__ . '/init.php';
class SplClass extends \ArrayObject
{
public function getTrue()
/**
* @ORM\Entity
* @ORM\Table(name="Table", indexes={@ORM\Index(name="search_idx", columns={"title", "body"}, flags={"FULLTEXT"})})
* @ORM\Entity)
*/
class Entity
{
// ...
<?php
namespace Symfony\Component\ClassLoader;
class LazyClassMapLoader
{
private $classMap = array();
private $collectedClasses = array();
private $loader;
private $path;
function addNextUserExperience() {
var $userExperiencesList = $('#bundle_account_settings_type_user_experiences');
var newField = $userExperiencesList.attr('data-prototype');
var newSelect = newField;
var $newSelect = $(newSelect.replace(/__name__/g, userExperiencesCount));
userExperiencesCount++;
$('#user-experiences-list').append($newSelect);
$newSelect.find('.account-date-picker').each(function(){
<?php
namespace Acme\Bundle\DemoBundle\Voter;
use Knp\Menu\ItemInterface;
use Knp\Menu\Silex\Voter\RouteVoter as BaseRouteVoter;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* {@inheritdoc}
<?php
// ...
public function testIndex()
{
$client = static::createClient();
$container = static::$kernel->getContainer();
$client->getCookieJar()->set(new \Symfony\Component\BrowserKit\Cookie($container->get('session')->getName(), true));
$token = new UsernamePasswordToken('admin', null, 'secured_area', array('ROLE_ADMIN'));
$container->get('security.context')->setToken($token);