PHP talking to Magnolia CMS

8.5.2012
I repost some of my blog posts made @ liip. Please see here for the original post and comments: https://blog.liip.ch/archive/2012/05/08/php-talking-to-magnolia-cms.html

Since we started working on Jackalope, we always claimed it would also provide an integration point with other enterprise systems. Last week, we set out to proof this idea. Grégory Joseph of the Java based Magnolia CMS came to help us on the Magnolia side of things. Magnolia is using the JCR reference implementation Jackrabbit for storing its content. After an interesting exchange on their design decisions and our ideas, we started to hack.

Read more

symfony cmf phpcr


Jackalope observation and import repository dumps

28.3.2012
I repost some of my blog posts made @ liip. Please see here for the original post and comments: https://blog.liip.ch/archive/2012/03/28/jackalope-observation-and-import-repository-dumps.html

Daniel Barsotti and me were reviewing the observation API of PHPCR and decided to just implement getting the observation journal. The journal contains all add, remove and update operations that happened on a PHPCR repository. You can also filter the journal by event type, path, node type and other criteria. This way, PHPCR can become almost a message queue (but just almost, there is no guaranteed delivery of messages).

Read more

phpcr jackalope


Doctrine PHPCR-ODM now handles versioning

6.2.2012
I repost some of my blog posts made @ liip. Please see here for the original post and comments: https://blog.liip.ch/archive/2012/02/06/doctrine-phpcr-odm-now-handles-versioning.html

The Doctrine PHPCR-ODM allows you to easily map your PHP objects onto content repository nodes. Since last week, the PHPCR-ODM leverages the versioning support of PHPCR in the ODM layer. This gives your application a very simple way to work with versioned content.

Read more

symfony phpcr doctrine cmf


Best of photos 2011

3.1.2012
Auch dieses Jahr gab es viele interessante Gelegenheiten, Photos zu machen. Hier eine Auswahl der Bilder, die mir am besten gefallen.

photos


Multilanguage support for Doctrine PHPCR-ODM

18.12.2011
I repost some of my blog posts made @ liip. Please see here for the original post and comments: https://blog.liip.ch/archive/2011/12/18/multilanguage-support-for-doctrine-phpcr-odm.html

Over the last weeks, Dan, Brian and myself worked on adding translation capabilities to Doctrine PHPCR-ODM. PHPCR-ODM is an object - document mapper for the php content repository (PHPCR). Thanks to the Liip Ecostar process, we got funding to do this during work time.

Read more

phpcr doctrine cmf


International PHP Conference 2011: PHP Content Repository Specification

12.10.2011
Conference: International PHP Conference / WebTech Con 2011
Title: PHP Content Repository Specification (joint talk with Lukas K. Smith)
Links: Slides, joind.in

The PHPCR specification defines an API that combines the power of NoSQL databases with hierarchical data structures and versioning, powerful search and other features. Content repositories, like Midgard2 or Jackrabbit, can implement the API to provide generic access to their content. Using PHPCR, applications can focus on the application logic and use the API to quickly implement CMS functionality.

phpcr conference


Symfony2 controller as a service and the service_container

5.10.2011
NOTE from 1.5 years later: This is not best practice. If you want a testable controller or write a reusable bundle, you should take the effort to inject the services you actually need, instead of extending the symfony base controller. For rapid development however, i would still recommend this as the base controller methods are very convenient.

I often want to have my controllers be a service so you can inject some information. But at the same time i like to extend the base controller Symfony\Bundle\FrameworkBundle\Controller\Controller to have the convenience methods like $this->render. Now if you just create a service from your controller, you won't be able to use the methods anymore. You will get exceptions about calling get() on a non-object.

Read more

symfony