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
<!-- app/config/config_prod.xml --> | |
<container xmlns="http://symfony.com/schema/dic/services" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:monolog="http://symfony.com/schema/dic/monolog" | |
xsi:schemaLocation="http://symfony.com/schema/dic/services | |
http://symfony.com/schema/dic/services/services-1.0.xsd | |
http://symfony.com/schema/dic/monolog | |
http://symfony.com/schema/dic/monolog/monolog-1.0.xsd" | |
> | |
<monolog:config> |
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
<monolog:config> | |
<monolog:handlers> | |
<monolog:handler name="main" type="stream" path="/var/log/symfony.log"> | |
<monolog:channels> | |
<channel>!doctrine</channel> | |
</monolog:channels> | |
</monolog:handler> | |
<monolog:handler name="doctrine" type="stream" path="/var/log/doctrine.log" /> | |
<monolog:channels> |
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 | |
// get the old stored value from the session | |
$modeloMarcaProductoArr = $session->get('modeloMarcaProductoId'); | |
// add a new entry to the array | |
$modeloMarcaProductoArr[$marca->getId().'-'.$modelo->getId()] = $modeloMarcaProducto->getId(); | |
// write this array back into the session | |
$session->set('modeloMarcaProductoId', $modeloMarcaProductoArr); |
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
<html> | |
<head> | |
<title>Test</title> | |
</head> | |
<body> | |
<p>Hello World</p> | |
<form method="post"> | |
<label for="foo">foo</label> <input type="text" id="foo"> | |
<label for="bar">bar</label> <input type="text" id="bar"> |
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 Status | |
{ | |
const YES = 'yes'; | |
const NO = 'no'; | |
const MAYBE = 'maybe'; | |
private static $instances = array(); | |
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: | |
topnode.manager.lot: | |
class: AuctionBundle\Manager\LotManager | |
arguments: | |
- @doctrine.orm.entity_manager | |
- AuctionBundle\Entity\Lot | |
- @event_dispatcher | |
- @validator |
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
composer/semver 1.2.0 | |
doctrine/annotations v1.2.7 | |
doctrine/cache v1.5.2 | |
doctrine/collections v1.3.0 | |
doctrine/common v2.6.0 | |
doctrine/data-fixtures v1.1.1 | |
doctrine/dbal dev-master 2241ee4 | |
doctrine/doctrine-bundle 1.6.1 | |
doctrine/doctrine-cache-bundle 1.2.2 | |
doctrine/inflector v1.1.0 |
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 | |
require __DIR__.'/vendor/autoload.php'; | |
use Symfony\Component\DomCrawler\Crawler; | |
$html = <<<EOT | |
<html> | |
<head></head> | |
<body> |
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 findByProductId($id) { | |
return $this->createQueryBuilder('mc') | |
->join('mc.product', 'product') | |
->where('product.id = :id') | |
->setParameter('id', $id) | |
; | |
} |
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
json.form.normalizer: | |
class: Adsc\MyBundle\Normalizer\FormErrorNormalizer | |
tags: | |
- { name: serializer.normalizer, priority: 10 } |
OlderNewer