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 FactoryCompilerPass implements CompilerPassInterface | |
{ | |
public function process(ContainerBuilder $container) | |
{ | |
$predisClientId = $container->getParameter('predis_client_id'); | |
if (!$container->hasDefinition($predisClientId)) { | |
throw new ServiceNotFoundException($predisClientId); |
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
Acme\Uuid: | |
type: embeddable | |
id: | |
uuid: | |
type: string | |
length: 36 |
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 Child extends Mother | |
{ | |
private $fieldsCount; | |
public function __construct() | |
{ | |
$this->fieldsCount = 5; | |
} |
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 | |
/** | |
* @Route("/{accreditamento_id}/{anagrafica_id}/crea/pdf/", name="pdf_create") | |
* @ParamConverter("accreditamento", class="AccreditamentiCongressiBundle:Accreditamento", options={"id" = "accreditamento_id"}) | |
* @ParamConverter("anagrafica", class="AccreditamentiCongressiBundle:Anagrafica", options={"id" = "anagrafica_id"}) | |
*/ | |
public function creaPdfCertificatoAction(Accreditamento $accreditamento, Anagrafica $anagrafica) { |
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 | |
$profiler = $this->client->getKernel()->getContainer()->get('profiler'); | |
$collectors = $profiler->all(); | |
foreach ($collectors as $collector) { | |
echo get_class($collector) . "\n"; | |
} |
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 | |
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; | |
use Symfony\Bundle\FrameworkBundle\Console\Application; | |
use ImportCommand; | |
class ImportCommandTest extends WebTestCase | |
{ | |
public function setUp() | |
{ |
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 | |
public function getRepository($name) | |
{ | |
$em = $this->getEntityManager(); | |
$entity = $this->getExtendedEntity($name); | |
if (is_null($entity)) { | |
$entity = $this->getDefaultEntity($name); | |
} |
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 Edimotive\SaloneBundle\Service; | |
use Symfony\Component\HttpKernel\Event\FilterResponseEvent; | |
use Symfony\Component\HttpKernel\Event\FilterControllerEvent; | |
use Edimotive\SaloneBundle\Service\ControllerExtendableInterface; | |
use Symfony\Bundle\FrameworkBundle\Controller\ControllerResolver; | |
use Symfony\Component\DependencyInjection\ContainerInterface; | |
use Edimotive\SaloneBundle\Service\CustomControllerManager; |
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
require_once __DIR__.'/../app/AppCache.php'; | |
$kernel = new AppCache($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
public function indexAction($search) | |
{ | |
if ( true === $search ) { | |
} | |
} |
NewerOlder