skafandri/synchronizeds

0.0.1 2014-12-14 08:05 UTC

This package is not auto-updated.

Last update: 2024-11-05 08:37:23 UTC


README

#SynchronizedS Synchronized Symfony bundle ##Instalation via composer

require: {"skafandri/synchronizeds": "dev-master"}

and load the bundle in your AppKernel.php

new Skafandri\SynchronizedBundle\SynchronizedBundle()

##Usage

The most common use case is to synchronize a service method.

class Processor
{
    public function process()
    {
        //do stuff
    }
}

Suppose you need to make the process method from the Processor service atomic. If the service id is my_processor

synchronized:
    driver: "file"
    path: "%kernel.root_dir%/synchronized"
    services:
        my_processor:
            method: "process"