Skip to content

Commit 41b52b9

Browse files
committed
Moving to SupervisorPHP
1 parent b6b696f commit 41b52b9

37 files changed

Lines changed: 169 additions & 177 deletions

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2013-2015 Indigo Development Team
1+
Copyright (c) 2013-2015 Márk Sági-Kazár <mark.sagikazar@gmail.com>
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
# Indigo Supervisor
1+
# Supervisor
22

3-
[![Latest Version](https://img.shields.io/github/release/indigophp/supervisor.svg?style=flat-square)](https://github.com/indigophp/supervisor/releases)
3+
[![Latest Version](https://img.shields.io/github/release/supervisorphp/supervisor.svg?style=flat-square)](https://github.com/supervisorphp/supervisor/releases)
44
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)
5-
[![Build Status](https://img.shields.io/travis/indigophp/supervisor.svg?style=flat-square)](https://travis-ci.org/indigophp/supervisor)
6-
[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/indigophp/supervisor.svg?style=flat-square)](https://scrutinizer-ci.com/g/indigophp/supervisor)
7-
[![Quality Score](https://img.shields.io/scrutinizer/g/indigophp/supervisor.svg?style=flat-square)](https://scrutinizer-ci.com/g/indigophp/supervisor)
8-
[![HHVM Status](https://img.shields.io/hhvm/indigophp/supervisor.svg?style=flat-square)](http://hhvm.h4cc.de/package/indigophp/supervisor)
9-
[![Total Downloads](https://img.shields.io/packagist/dt/indigophp/supervisor.svg?style=flat-square)](https://packagist.org/packages/indigophp/supervisor)
10-
[![Dependency Status](https://img.shields.io/versioneye/d/php/indigophp:supervisor.svg?style=flat-square)](https://www.versioneye.com/php/indigophp:supervisor)
5+
[![Build Status](https://img.shields.io/travis/supervisorphp/supervisor.svg?style=flat-square)](https://travis-ci.org/supervisorphp/supervisor)
6+
[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/supervisorphp/supervisor.svg?style=flat-square)](https://scrutinizer-ci.com/g/supervisorphp/supervisor)
7+
[![Quality Score](https://img.shields.io/scrutinizer/g/supervisorphp/supervisor.svg?style=flat-square)](https://scrutinizer-ci.com/g/supervisorphp/supervisor)
8+
[![HHVM Status](https://img.shields.io/hhvm/supervisorphp/supervisor.svg?style=flat-square)](http://hhvm.h4cc.de/package/supervisorphp/supervisor)
9+
[![Total Downloads](https://img.shields.io/packagist/dt/supervisorphp/supervisor.svg?style=flat-square)](https://packagist.org/packages/supervisorphp/supervisor)
10+
[![Dependency Status](https://img.shields.io/versioneye/d/php/supervisorphp:supervisor.svg?style=flat-square)](https://www.versioneye.com/php/supervisorphp:supervisor)
1111

12-
**PHP library for managing supervisord through XML-RPC API.**
12+
**PHP library for managing Supervisor through XML-RPC API.**
1313

1414

1515
## Install
1616

1717
Via Composer
1818

1919
``` bash
20-
$ composer require indigophp/supervisor
20+
$ composer require supervisorphp/supervisor
2121
```
2222

2323

2424
## Usage
2525

2626
``` php
27-
use Indigo\Supervisor\Supervisor;
28-
use Indigo\Supervisor\Connector\XmlRpc;
27+
use Supervisor\Supervisor;
28+
use Supervisor\Connector\XmlRpc;
2929
use fXmlRpc\Client;
3030
use fXmlRpc\Transport\Guzzle4Bridge;
3131

@@ -82,8 +82,8 @@ As of version 3.0.0 `setCredentials` is no longer part of the `Connector` interf
8282
For each possible fault response there is an exception. These exceptions extend a [common exception](src/Exception/Fault.php), so you are able to catch a specific fault or all. When an unknown fault is returned from the server, an instance if the common exception is thrown. The list of fault responses and the appropriate exception can be found in the class.
8383

8484
``` php
85-
use Indigo\Supervisor\Exception\Fault;
86-
use Indigo\Supervisor\Exception\Fault\BadName;
85+
use Supervisor\Exception\Fault;
86+
use Supervisor\Exception\Fault\BadName;
8787

8888
try {
8989
$supervisor->restart('process');
@@ -99,7 +99,7 @@ try {
9999

100100
## Configuration and Event listening
101101

102-
[Configuration](https://github.com/indigophp/supervisor-configuration) and [Event](https://github.com/indigophp/supervisor-event) components have been moved into their own repository. See [#24](https://github.com/indigophp/supervisor/issues/24) for explanation.
102+
[Configuration](https://github.com/supervisorphp/configuration) and [Event](https://github.com/supervisorphp/event) components have been moved into their own repository.
103103

104104

105105
## Further info
@@ -115,14 +115,6 @@ If you use PHP XML-RPC extension to parse responses (which is marked as *EXPERIM
115115
You will also have to make sure that you always call the functions with correct parameters. `Zend` connector will trigger an error when incorrect parameters are passed. See [this](https://github.com/zendframework/zf2/issues/6455) issue for details. (Probably this won't change in near future based on my inspections of the code.) Other connectors will throw a `Fault` exception.
116116

117117

118-
## Bundles
119-
120-
Here is a list of framework specific bundle packages:
121-
122-
- [HumusSupervisorModule](https://github.com/prolic/HumusSupervisorModule) *(Zend Framework 2)*
123-
- [Fuel Supervisor](https://github.com/indigophp/fuel-supervisor) *(FuelPHP 1.x)*
124-
125-
126118
## Testing
127119

128120
``` bash
@@ -138,7 +130,7 @@ Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
138130
## Credits
139131

140132
- [Márk Sági-Kazár](https://github.com/sagikazarmark)
141-
- [All Contributors](https://github.com/indigophp/supervisor/contributors)
133+
- [All Contributors](https://github.com/supervisorphp/supervisor/contributors)
142134

143135

144136
## License

RoboFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class RoboFile extends \Robo\Tasks
1414
*/
1515
public function faults()
1616
{
17-
$faultReflection = new \ReflectionClass('Indigo\Supervisor\Exception\Fault');
17+
$faultReflection = new \ReflectionClass('Supervisor\Exception\Fault');
1818
$faults = array_flip($faultReflection->getConstants());
1919

2020
$this->taskCleanDir([__DIR__.'/src/Exception/Fault'])->run();

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"name": "indigophp/supervisor",
3-
"description": "PHP library for Supervisor",
2+
"name": "supervisorphp/supervisor",
3+
"description": "PHP library for managing Supervisor through XML-RPC API",
44
"license": "MIT",
55
"keywords": ["supervisor", "process manager"],
6-
"homepage": "https://indigophp.com",
6+
"homepage": "https://supervisorphp.com",
77
"authors": [
88
{
99
"name": "Márk Sági-Kazár",
@@ -21,15 +21,15 @@
2121
"henrikbjorn/phpspec-code-coverage" : "~1.0.0",
2222
"behat/behat": "~3.0.0",
2323
"rhumsaa/array_column": "~1.1.0",
24-
"indigophp/supervisor-configuration": "~0.1.0"
24+
"supervisorphp/configuration": "~0.1.0"
2525
},
2626
"suggest": {
2727
"lstrojny/fxmlrpc": "A modern, super fast XML/RPC client for PHP >=5.4",
2828
"zendframework/zend-xmlrpc": "XmlRpc component from Zend Framework 2"
2929
},
3030
"autoload": {
3131
"psr-4": {
32-
"Indigo\\Supervisor\\": "src/"
32+
"Supervisor\\": "src/"
3333
}
3434
},
3535
"extra": {

features/bootstrap/FeatureContext.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
use Behat\Behat\Hook\Scope\AfterScenarioScope;
88
use Behat\Gherkin\Node\PyStringNode;
99
use Behat\Gherkin\Node\TableNode;
10-
use Indigo\Supervisor\Configuration\Parser\File as Parser;
11-
use Indigo\Supervisor\Configuration\Writer\File as Writer;
12-
use Indigo\Supervisor\Configuration\Section;
13-
use Indigo\Supervisor\Connector\XmlRpc;
14-
use Indigo\Supervisor\Supervisor;
10+
use Supervisor\Configuration\Parser\File as Parser;
11+
use Supervisor\Configuration\Writer\File as Writer;
12+
use Supervisor\Configuration\Section;
13+
use Supervisor\Connector\XmlRpc;
14+
use Supervisor\Supervisor;
1515
use fXmlRpc\Client;
1616
use fXmlRpc\Transport\Guzzle4Bridge;
1717
use GuzzleHttp\Client as GuzzleClient;

features/bootstrap/ZendContext.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

3-
use Indigo\Supervisor\Connector\Zend;
4-
use Indigo\Supervisor\Supervisor;
3+
use Supervisor\Connector\Zend;
4+
use Supervisor\Supervisor;
55
use Zend\XmlRpc\Client;
66
use Zend\Http\Client as HttpClient;
77

phpspec.yml.ci

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
suites:
22
supervisor_suite:
3-
namespace: Indigo\Supervisor
4-
psr4_prefix: Indigo\Supervisor
3+
namespace: Supervisor
4+
psr4_prefix: Supervisor
55
extensions:
66
- PhpSpec\Extension\CodeCoverageExtension
77
formatter.name: pretty

phpspec.yml.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
suites:
22
supervisor_suite:
3-
namespace: Indigo\Supervisor
4-
psr4_prefix: Indigo\Supervisor
3+
namespace: Supervisor
4+
psr4_prefix: Supervisor
55
formatter.name: pretty

resources/FaultTemplate.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<?php
22

33
/*
4-
* This file is part of the Indigo Supervisor package.
4+
* This file is part of the Supervisor package.
55
*
6-
* (c) Indigo Development Team
6+
* (c) Márk Sági-Kazár <mark.sagikazar@gmail.com>
77
*
88
* For the full copyright and license information, please view the LICENSE
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Indigo\Supervisor\Exception\Fault;
12+
namespace Supervisor\Exception\Fault;
1313

14-
use Indigo\Supervisor\Exception\Fault;
14+
use Supervisor\Exception\Fault;
1515

1616
/**
1717
* Implements {FAULT_NAME} Fault exception

spec/Connector/XmlRpcSpec.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace spec\Indigo\Supervisor\Connector;
3+
namespace spec\Supervisor\Connector;
44

55
use fXmlRpc\ClientInterface;
66
use fXmlRpc\Exception\ResponseException;
@@ -15,12 +15,12 @@ function let(ClientInterface $client)
1515

1616
function it_is_initializable()
1717
{
18-
$this->shouldHaveType('Indigo\Supervisor\Connector\XmlRpc');
18+
$this->shouldHaveType('Supervisor\Connector\XmlRpc');
1919
}
2020

2121
function it_is_a_conncetor()
2222
{
23-
$this->shouldImplement('Indigo\Supervisor\Connector');
23+
$this->shouldImplement('Supervisor\Connector');
2424
}
2525

2626
function it_calls_a_method(ClientInterface $client)
@@ -39,7 +39,7 @@ function it_throws_an_exception_when_the_call_fails(ClientInterface $client)
3939

4040
$client->call('namespace.method', [])->willThrow($e);
4141

42-
$this->shouldThrow('Indigo\Supervisor\Exception\Fault')->duringCall('namespace', 'method');
42+
$this->shouldThrow('Supervisor\Exception\Fault')->duringCall('namespace', 'method');
4343
}
4444

4545
function it_throws_a_known_exception_when_proper_fault_returned(ClientInterface $client)
@@ -51,6 +51,6 @@ function it_throws_a_known_exception_when_proper_fault_returned(ClientInterface
5151

5252
$client->call('namespace.method', [])->willThrow($e);
5353

54-
$this->shouldThrow('Indigo\Supervisor\Exception\Fault\UnknownMethod')->duringCall('namespace', 'method');
54+
$this->shouldThrow('Supervisor\Exception\Fault\UnknownMethod')->duringCall('namespace', 'method');
5555
}
5656
}

0 commit comments

Comments
 (0)