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
./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 |
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
--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() |
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
/** | |
* @ORM\Entity | |
* @ORM\Table(name="Table", indexes={@ORM\Index(name="search_idx", columns={"title", "body"}, flags={"FULLTEXT"})}) | |
* @ORM\Entity) | |
*/ | |
class Entity | |
{ | |
// ... |
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 Symfony\Component\ClassLoader; | |
class LazyClassMapLoader | |
{ | |
private $classMap = array(); | |
private $collectedClasses = array(); | |
private $loader; | |
private $path; |
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
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(){ |
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 Acme\Bundle\DemoBundle\Voter; | |
use Knp\Menu\ItemInterface; | |
use Knp\Menu\Silex\Voter\RouteVoter as BaseRouteVoter; | |
use Symfony\Component\DependencyInjection\ContainerInterface; | |
/** | |
* {@inheritdoc} |
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 | |
// ... | |
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); |