2017 © Pedro Peláez
 

symfony-bundle loopcommandbundle

Symfony2 bundle for loop commands execution

image

kzdali/loopcommandbundle

Symfony2 bundle for loop commands execution

  • Friday, September 4, 2015
  • by v03adk
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

LoopCommandBundle

Installation and configuration:

Pretty simple with Composer, run:, (*1)

composer require kzdali/loopcommandbundle

Add LoopCommandBundle to your application kernel

// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new KzDali\LoopCommandBundle\LoopCommandBundle(),
        // ...
    );
}

Configuration example and Usage

You should configure commands to loop in config.yml, (*2)

loop_commands:
    commands: [cache:clear, doctrine:migrations:generate]                      # comma separated commands

Loop process starts automatically by CheckLoopRunning event listener. When contoller is called, if it implements LoopCommandInterface loop process starts., (*3)

// src/AppBundle/Controller/SomeConteroller.php

use KzDali\LoopCommandBundle\Controller\LoopCommandInterface;

// ...

class SomeController extends Controller implements LoopCommandInterface
{
    // ...
}

To kill loop process, (*4)

php app/console loop_command:kill_process

The Versions

04/09 2015

dev-master

9999999-dev https://github.com/v03adk/LoopCommandBundle

Symfony2 bundle for loop commands execution

  Sources   Download

MIT

The Requires

 

by Denis Alimov

symfony2 loop command

04/09 2015

1.0.0

1.0.0.0 https://github.com/v03adk/LoopCommandBundle

Symfony2 bundle for loop commands execution

  Sources   Download

MIT

The Requires

 

by Denis Alimov

symfony2 loop command