-
-
Save giorrrgio/d4395afe470a1ad223e0 to your computer and use it in GitHub Desktop.
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 | |
$kernel = new AppKernel('prod', false); | |
$kernel->loadClassCache(); | |
$kernel = new AppCache($kernel); | |
$request = Request::createFromGlobals(); | |
$response = $kernel->handle($request); | |
$response->send(); | |
$kernel->terminate($request, $response); |
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 | |
class HttpCache implements HttpKernelInterface, TerminableInterface | |
{ | |
private $kernel; | |
[...] | |
public function __construct(HttpKernelInterface $kernel, [...]) | |
{ | |
$this->store = $store; | |
$this->kernel = $kernel; | |
[...] | |
} |
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
services: | |
my.gorgeous.repository: | |
class: My\Gorgeous\Repository\SuperPowerRepository | |
factory_service: doctrine.orm.default_entity_manager | |
factory_method: getRepository | |
arguments: | |
- MyGorgeousBundle:SuperPower |
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 | |
$task = new Task(); | |
$task->setTask('Write a blog post'); | |
$task->setDueDate(new \DateTime('tomorrow')); | |
$form = $this->createFormBuilder($task) | |
->add('task', 'text') | |
->add('dueDate', 'date') | |
->add('save', 'submit') | |
->getForm(); |
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 | |
interface FormBuilderInterface extends \Traversable, \Countable, FormConfigBuilderInterface | |
{ | |
public function add($child, $type = null, array $options = array()); | |
public function create($name, $type = null, array $options = array()); | |
public function get($name); | |
public function remove($name); | |
public function has($name); | |
public function all(); | |
public function getForm(); | |
} |
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 | |
interface FragmentRendererInterface | |
{ | |
public function render($uri, Request $request, array $options = array()); | |
public function getName(); | |
} |
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 | |
abstract class RoutableFragmentRenderer implements FragmentRendererInterface | |
{ | |
//[...] | |
} | |
class EsiFragmentRenderer extends RoutableFragmentRenderer | |
{ | |
//[...] | |
{ | |
class HIncludeFragmentRenderer extends RoutableFragmentRenderer | |
{ | |
//[...] | |
} |
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 | |
interface HttpKernelInterface | |
{ | |
const MASTER_REQUEST = 1; | |
const SUB_REQUEST = 2; | |
/** Handles a Request to convert it to a Response. */ | |
public function handle(Request $request, $type = self::MASTER_REQUEST, $catch = true); | |
} |
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 | |
protected function initializeContainer() | |
{ | |
$class = $this->getContainerClass(); | |
//omitted caching stuff | |
$this->container = new $class(); | |
$this->container->set('kernel', $this); | |
if (!$fresh && $this->container->has('cache_warmer')) { | |
$this->container->get('cache_warmer')->warmUp($this->container->getParameter('kernel.cache_dir')); | |
} | |
} |
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 | |
class Mailer | |
{ | |
protected $transport; | |
public function __construct(MyTransportInterface $transport) | |
{ | |
$this->transport = $transport; | |
} | |
public function sendEmailMessage($body, $subject, $from, $to) | |
{ | |
//do stuff | |
$this->transport->send($body, $subject, $from, $to); | |
} | |
} |
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\Validator; | |
interface MetadataInterface | |
{ | |
public function accept(ValidationVisitorInterface $visitor, $value, $group, $propertyPath); | |
public function findConstraints($group); | |
} |
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 composer.phar require symfony/proxy-manager-bridge:2.3.* | |
services: | |
foo: | |
class: Acme\Foo | |
lazy: true |
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 | |
interface SecurityFactoryInterface | |
{ | |
public function create(ContainerBuilder $container, $id, $config, $userProvider, $defaultEntryPoint); | |
public function getPosition(); | |
public function getKey(); | |
public function addConfiguration(NodeDefinition $builder); | |
} |
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\Validator; | |
interface ValidationVisitorInterface | |
{ | |
public function validate($value, $group, $propertyPath, $traverse = false, $deep = false); | |
public function visit(MetadataInterface $metadata, $value, $group, $propertyPath); | |
} |
liuggio
commented
Oct 13, 2013
<?php
namespace MongoDBODMProxies\__CG__\Acme\CartBundle\Document;
use Doctrine\ODM\MongoDB\Persisters\DocumentPersister;
/**
* THIS CLASS WAS GENERATED BY THE DOCTRINE ODM. DO NOT EDIT THIS FILE.
*/
class Cart extends \Acme\CartBundle\Document\Cart implements \Doctrine\ODM\MongoDB\Proxy\Proxy
{
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment