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 LS\CommonBundle\Markdown; | |
use Knp\Bundle\MarkdownBundle\MarkdownParserInterface; | |
use Sundown\Markdown; | |
/** | |
* SundownParser | |
* |
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 Tolkiendil\AssoBundle\Form\Type; | |
use Symfony\Component\Form\AbstractType; | |
class DatePickerType extends AbstractType | |
{ | |
public function getDefaultOptions(array $options) | |
{ |
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 | |
/** | |
* Gets the 'event_dispatcher' service. | |
* | |
* This service is shared. | |
* This method always returns the same instance of the service. | |
* | |
* @return Symfony\Bundle\FrameworkBundle\Debug\TraceableEventDispatcher A Symfony\Bundle\FrameworkBundle\Debug\TraceableEventDispatcher instance. | |
*/ |
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 | |
private function sanitizeQueries($queries) | |
{ | |
foreach ($queries as $i => $query) { | |
foreach ((array) $query['params'] as $j => $param) { | |
if (isset($query['types'][$j])) { | |
$type = $query['types'][$j]; | |
if (is_string($type)) { |
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\UserBundle\EventListener; | |
use Symfony\Component\HttpKernel\Log\LoggerInterface; | |
use Symfony\Component\HttpKernel\Event\FilterControllerEvent; | |
use Symfony\Component\Security\Core\SecurityContextInterface; | |
class LoggerListener | |
{ |
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
01:06 < Crell> I've an architectural question if anyone has a moment. | |
01:07 < Stof> Crell: shoot | |
01:07 < Stof> couac: merged | |
01:07 < couac> thanks! | |
01:08 < Crell> The stuff I've seen on Symfony makes a big deal about how it doesn't do application caching, and just "lets HTTP do it". | |
01:08 < couac> Stof: oh and I'm ok with your conclusion (about the end of the proxy) | |
01:08 < Crell> Doesn't that mean that you cannot control when newly posted content is available? You cannot say "this object has changed, so next time it's requested regenerate the page and recache"? | |
01:09 < Crell> Since you have to wait for HTTP to expire its cache for a message to even get to you to find out that it's been updated. | |
01:09 -!- couac [[email protected]] has quit [Remote host closed the connection] | |
01:10 < Stof> Crell: lsmith wants to build such a tool using advanced features provided by Varnish to invalidate the cache selectively |
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 Drupal\Core\Controller; | |
use Symfony\Component\HttpKernel\Controller\ControllerResolver; | |
use Symfony\Component\HttpKernel\Log\LoggerInterface; | |
use Symfony\Component\HttpFoundation\Request; | |
/** | |
* Extended controller resolver trying to use the node to get the 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 Acme\UserBundle\Model; | |
use FOS\UserBundle\Entity\UserManager as BaseUserManager; | |
use Symfony\Component\Security\Core\Exception\UsernameNotFoundException; | |
class UserManager extends BaseUserManager | |
{ | |
public function loadUserByUsername($username) |
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 Midgard\AppServerBundle\AiP; | |
use Symfony\Component\HttpKernel\HttpKernelInterface; | |
use Symfony\Component\HttpFoundation\Request; | |
class Application | |
{ | |
/** | |
* @var Symfony\Component\HttpKernel\HttpKernelInterface |