PHP Classes

File: app/configs/components/services.php

Recommend this page to a friend!
  Classes of Oleg Lunegov   MicroPHP Framework   app/configs/components/services.php   Download  
File: app/configs/components/services.php
Role: Configuration script
Content type: text/plain
Description: setup services
Class: MicroPHP Framework
MVC framework for Web or command line applications
Author: By
Last change: Update of app/configs/components/services.php
Date: 11 months ago
Size: 1,249 bytes
 

Contents

Class file image Download
<?php
return [
   
'class' => '\Micro\Base\Services',
   
'arguments' => [
       
'servers' => [
           
'server1' => [
               
'class' => '\Micro\Queue\RawQueue',
               
'ip' => '192.168.10.1',
               
'user' => 'name',
               
'pass' => 'word'
           
],
           
'server2' => [
               
'class' => '\Micro\Queue\RedisQueue',
               
'ip' => '192.168.10.2',
               
'user' => 'name',
               
'pass' => 'word'
           
],
           
'server3' => [
               
'class' => '\Micro\Queue\RedisQueue',
               
'ip' => '192.168.10.3',
               
'user' => 'name',
               
'pass' => 'word'
           
],
           
'server4' => [
               
'class' => '\Micro\Queue\RabbitMqQueue',
               
'ip' => '192.168.10.4',
               
'user' => 'name',
               
'pass' => 'word'
           
]
        ],
       
'routes' => [
           
'pipeline.service' => 'server1',
           
'master.*' => [
               
'async' => ['server2'],
               
'server3'
           
],
           
'broadcast.*' => [
               
'stream' => ['server4', 'server1'],
               
'sync' => 'server2'
           
]
        ]
    ]
];