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
diff --git a/src/Symfony/Bundle/DoctrineMongoDBBundle/DataCollector/DoctrineMongoDBDataCollector.php b/src/Symfony/Bundle/DoctrineMongoDBBundle/DataCollector/DoctrineMongoDBDataC | |
index 0574ccf..ec89d40 100644 | |
--- a/src/Symfony/Bundle/DoctrineMongoDBBundle/DataCollector/DoctrineMongoDBDataCollector.php | |
+++ b/src/Symfony/Bundle/DoctrineMongoDBBundle/DataCollector/DoctrineMongoDBDataCollector.php | |
@@ -27,6 +27,7 @@ class DoctrineMongoDBDataCollector extends DataCollector | |
public function collect(Request $request, Response $response, \Exception $exception = null) | |
{ | |
$this->data['nb_queries'] = $this->logger->getNbQueries(); | |
+ $this->data['queries'] = $this->logger->getQueries(); | |
} |
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
class DoctrineExtensionsBundle extends BaseBundle | |
{ | |
public static function addSubscriber($eventManager, EventSubscriber $subscriber) | |
{ | |
return $eventManager->addSubscriber($subscriber); | |
} | |
} |
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 Bundle\ECommerce\ProductBundle\Controller; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
class ProductController extends Controller | |
{ | |
public function indexAction($page = 1) | |
{ |
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
**** DÉBUT DU JOURNAL À Tue Dec 14 19:42:03 2010 | |
déc. 14 19:42:25 <inspiran> in typical e-commerce software (and which probably most php'ers would do) is just say 'just update the sales order' | |
déc. 14 19:42:59 <inspiran> but in lots of business cases, actually in almost all europe companies due to legal constraints, you can not do that | |
déc. 14 19:43:18 <inspiran> (you are modifying a sales order / invoice which was already sent) | |
déc. 14 19:43:27 <inspiran> so what do you need to do? | |
déc. 14 19:43:44 <inspiran> you need to cancel the old sales order and create a new one | |
déc. 14 19:44:13 <inspiran> (which involves updating the accounting balances twice) | |
déc. 14 19:44:57 <florian__> yes, I already had to face this kind of problesm | |
déc. 14 19:45:14 <inspiran> yeah? i am interesting to hear about how you dealt with it |
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
prod_cli: | |
routing: | |
param: | |
context: | |
prefix: https://the.url-you-wa.nt | |
is_secure: true |
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
T 1296470968 29* 29Le sujet de #symfony-cmf 29est : https://github.com/symfony-cmf/symfony-cmf/wiki/Architecture || http://cmf.symfony-project.org || making it easier for developers to add CMS functionality to applications built with the Symfony2 PHP framework | |
T 1296470968 29* 29Sujet de #symfony-cmf 29défini par lsmith!~lsmith@251-74.127-70.tampabay.res.rr.com 29le Wed Nov 17 14:30:08 2010 | |
T 1296471086 18<lsmith> salut florian | |
T 1296471196 31<florian_klein>30 hello! | |
T 1296471322 18<Seldaek> hoy | |
T 1296471438 31<florian_klein>30 hoy :) | |
T 1296471692 18<dbu> hello | |
T 1296471766 31<florian_klein>30 Hi david | |
T 1296477349 19* 19juokaz_ (~Juozas@188-223-12-184.zone14.bethere.co.uk) a rejoint #symfony-cmf | |
T 1296477373 23* 23juokaz_ est parti (23Read error: Connection reset by peer23) |
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
<constraint-mapping xmlns="http://www.symfony-project.org/schema/dic/constraint-mapping" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://www.symfony-project.org/schema/dic/constraint-mapping | |
http://www.symfony-project.org/schema/dic/services/constraint-mapping-1.0.xsd"> | |
<class name="Test\FileBundle\Entity\File"> | |
<property name="title"> | |
<constraint name="NotBlank"> | |
<option name="message">error.title.empty</option> | |
</constraint> |
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 createClassAce(ObjectIdentity $objectIdentity, User $user = null, MaskBuilder $maskBuilder = null) | |
{ | |
if( ! $user) { | |
$user = $this->getUser(); | |
} | |
if( ! $user instanceof \Symfony\Component\Security\Core\User\AccountInterface) | |
{ | |
throw new \InvalidArgumentException('you must have a User in "security.context"'); | |
} |
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 Test | |
{ | |
public function whatTheFuck() | |
{ | |
${'thi' . 's'} = 'tata'; | |
$name = 'this'; | |
var_dump($this); |
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
Function.prototype.bind = function(context) { | |
if (arguments.length < 2 && Object.isUndefined(arguments[0])) return this; | |
var __method = this, args = slice.call(arguments, 1); | |
return function() { | |
var a = merge(args, arguments); | |
return __method.apply(context, a); | |
} | |
} |