Skip to content

Instantly share code, notes, and snippets.

Grégoire Marchal Gregoire-M

Block or report user

Report or block Gregoire-M

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View validators.fr.yml
spam:
detected: Hum... On dirait que vous êtes un robot ! Malheureusement, les robots ne sont pas encore autorisés à laisser des commentaires. Ré-essayez en vous appliquant un peu mieux si vous êtes un humain !
@Gregoire-M
Gregoire-M / Builder.php
Last active Mar 30, 2019 — forked from mrflory/Builder.php
Modified menu template to handle submenus
View Builder.php
<?php
namespace Linkofy\CommonBundle\Menu;
use Knp\Menu\FactoryInterface;
use Symfony\Component\DependencyInjection\ContainerAware;
class Builder extends ContainerAware
{
public function mainMenu(FactoryInterface $factory, array $options)
View BlogController.php
public function displayAction(Post $post)
{
// page caching
$response = new Response();
$response->setLastModified($post->getModificationDate());
$response->setPublic();
if ($response->isNotModified($this->getRequest())) {
return $response;
}
You can’t perform that action at this time.