This file contains hidden or 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
echo "hello world" | |
touch /tmp/foo |
This file contains hidden or 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
class acl( | |
$needle = '/precise64-root', | |
) { | |
package { "acl": | |
ensure => installed, | |
} | |
# https://gist.github.com/4595997 | |
exec { "add_fstab_acl": |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="Project-name-here" default="build" basedir="."> | |
<target name="lock_check" description="Checks for vulnerabilities through a SensioLabs web service" | |
depends="lock_reset,lock_get,lock_show"> | |
<local name="vulnerabilities.clean"/> | |
<loadfile property="vulnerabilities.clean" | |
srcfile="${basedir}/build/logs/check_lock.log"> | |
<filterchain> |
This file contains hidden or 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\DemoBundle\Controller; | |
class FatController extends Controller | |
{ | |
/** | |
* @Route("/{id}/edit", name="some_edit_route") | |
* @Method({"GET"}) | |
* @Template() | |
*/ |
This file contains hidden or 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 | |
private function loadModel($id) | |
{ | |
return $this->get('some_new_handler_service')->load($id); | |
} |
This file contains hidden or 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\DemoBundle\Controller; | |
class ThinController extends Controller | |
{ | |
/** | |
* @Route("/", name="some_index_route") | |
* @Template() |
This file contains hidden or 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 foo\BarBundle\Controller; | |
// use statements ... | |
class FatController extends Controller | |
{ | |
/** | |
* @Route("/", name="some_index_route") | |
* @Template() |
This file contains hidden or 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 frastel\BlogPlaygroundBundle\Container; | |
use Symfony\Component\DependencyInjection\ContainerInterface; | |
use Symfony\Component\HttpKernel\Log\LoggerInterface; | |
class DependencyPuller | |
{ | |
private $logger; |
This file contains hidden or 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
public function testDoSomething() | |
{ | |
$logger = $this->getMockBuilder('Symfony\\Bridge\\Monolog\\Logger') | |
->disableOriginalConstructor() | |
->getMock(); | |
$mailer = $this->getMockBuilder('Swift_Mailer') | |
->disableOriginalConstructor() | |
->getMock(); |
This file contains hidden or 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
public function testDoSomething() | |
{ | |
$logger = $this->getMockBuilder('Symfony\\Bridge\\Monolog\\Logger') | |
->disableOriginalConstructor() | |
->getMock(); | |
$container = new Container(); | |
$container->set('logger', $logger); | |
$puller = new DependencyPuller($container); |
NewerOlder