Skip to content

skafandri/SynchronizedS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

#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"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages