Twig Templates, Initial Cache Hit

OroCRM uses Symfony's delegate template engine, which means developers are free to use any template service added to the Symfony configuration. This usually means twig. I'm tracing the execution of a full twig render, and I'm starting to see why twig's initial cache hit is so performance heavy. Here's one…

Symfony's Two Generated PHP Files

Update: The information in the post below is correct, except for the part where it talks about Symfony have two generated PHP files. It actually has three. More as a reminder to myself than anything else, it's important to remember a Symfony application has two generated PHP files. The first…

Symfony Aliases and the Event Dispatcher

In what I hope is the last word on the previously discussed event_dispatcher service, I downloaded the latest version of Symfony (2.4.1, the OroCRM Beta 6 uses Symfony 2.3.6), and discovered a change in the generated dev container file. Specifically, #File: app/cache/dev/appDevDebugProjectContainer.…

More Notes on Symfony Event Dispatch

As hinted at by the last post, I've spent more of my "Oro Time" this week mired in Symfony's event dispatcher. There's a few other things I've found that are worth sharing. First, the web profiler appears to have a bug where it will incorrectly list a called observer as…

Extending Symfony's Event Service

One important concept in Symfony 2 (the framework OroBAP/OroCRM is built-in/on-top-of) is the service container. Programmers create classes and class hierarchies for myriad reasons — one way of looking at a service container is it allows a programmer to say Hey, this class? It's a service. It provides an…

OroCRM Hello World

OroCRM Hello World Thus starts the long march through a new MVC framework's features and quirks.…