Skip to content

Instantly share code, notes, and snippets.

View pounard's full-sized avatar
💭
What's happening?

Pierre pounard

💭
What's happening?
View GitHub Profile
<?php
namespace Drupal\my_module\Plugins\Blocks;
/**
* @Plugin(
* type="menu_block",
* title="Menu Block",
* description="A block for displaying system or user generated menus."
* )
@pounard
pounard / MonParamConverter.php
Last active April 14, 2017 14:20
Param converter sans annotations
<?php
namespace MonVendor\MonBundle\Controller;
use MonVendor\MonBundle\Gestion\DemandeHelper;
use MonVendor\MonBundle\Gestion\Entity\Aide;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
use Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;