Skip to content

Commit fb50879

Browse files
committed
Moving to SupervisorPHP
1 parent 024916a commit fb50879

File tree

19 files changed

+83
-83
lines changed

19 files changed

+83
-83
lines changed

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: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# Indigo Supervisor Event
1+
# Supervisor Event
22

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

1212
**Listen to Supervisor events in PHP.**
1313

@@ -17,7 +17,7 @@
1717
Via Composer
1818

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

2323
## Usage
@@ -28,9 +28,9 @@ The main entry point is the `Listener`. `Listeners`s wait for a `Handler` in the
2828

2929

3030
``` php
31-
use Indigo\Supervisor\Event\Listener\Standard;
32-
use Indigo\Supervisor\Event\Handler\Callback;
33-
use Indigo\Supervisor\Event\Notification;
31+
use Supervisor\Event\Listener\Standard;
32+
use Supervisor\Event\Handler\Callback;
33+
use Supervisor\Event\Notification;
3434

3535
$handler = new Callback(function(Notification $notification) {
3636
echo $notification->getHeader('eventname');
@@ -49,8 +49,8 @@ Currently available listeners:
4949

5050
Additionally you can use two exceptions to control the listeners itself:
5151

52-
- `Indigo\Supervisor\Exception\StopListener`: indicates that the `Listener` should stop listening for further events.
53-
- `Indigo\Supervisor\Exception\EventHandlingFailed`: indicates that handling the event failed, `Listener` should return with a FAIL response.
52+
- `Supervisor\Exception\StopListener`: indicates that the `Listener` should stop listening for further events.
53+
- `Supervisor\Exception\EventHandlingFailed`: indicates that handling the event failed, `Listener` should return with a FAIL response.
5454

5555
Any other unhandled exceptions/errors will cause the listener to stop.
5656

@@ -73,7 +73,7 @@ Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
7373
## Credits
7474

7575
- [Márk Sági-Kazár](https://github.com/sagikazarmark)
76-
- [All Contributors](https://github.com/indigophp/supervisor-event/contributors)
76+
- [All Contributors](https://github.com/supervisorphp/event/contributors)
7777

7878

7979
## License

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"name": "indigophp/supervisor-event",
2+
"name": "supervisorphp/event",
33
"description": "Listen to Supervisor events in PHP",
44
"license": "MIT",
55
"keywords": ["supervisor", "event", "listener"],
6-
"homepage": "https://indigophp.com",
6+
"homepage": "http://supervisorphp.com",
77
"authors": [
88
{
99
"name": "Márk Sági-Kazár",
@@ -23,12 +23,12 @@
2323
},
2424
"autoload": {
2525
"psr-4": {
26-
"Indigo\\Supervisor\\": "src/"
26+
"Supervisor\\": "src/"
2727
}
2828
},
2929
"autoload-dev": {
3030
"psr-4": {
31-
"Indigo\\Supervisor\\Stub\\": "stub/"
31+
"Supervisor\\Stub\\": "stub/"
3232
}
3333
},
3434
"extra": {

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

spec/Event/Handler/CallbackSpec.php

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

3-
namespace spec\Indigo\Supervisor\Event\Handler;
3+
namespace spec\Supervisor\Event\Handler;
44

5-
use Indigo\Supervisor\Event\Notification;
6-
use Indigo\Supervisor\Exception\EventHandlingFailed;
5+
use Supervisor\Event\Notification;
6+
use Supervisor\Exception\EventHandlingFailed;
77
use PhpSpec\ObjectBehavior;
88

99
class CallbackSpec extends ObjectBehavior
@@ -15,12 +15,12 @@ function let()
1515

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

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

2626
function it_handles_a_notification(Notification $notification)
@@ -31,6 +31,6 @@ function it_handles_a_notification(Notification $notification)
3131
function it_throws_an_exception_when_handling_failed(Notification $notification)
3232
{
3333
$this->beConstructedWith(function() { throw new EventHandlingFailed; });
34-
$this->shouldThrow('Indigo\Supervisor\Exception\EventHandlingFailed')->duringHandle($notification);
34+
$this->shouldThrow('Supervisor\Exception\EventHandlingFailed')->duringHandle($notification);
3535
}
3636
}

spec/Event/Listener/GuzzleSpec.php

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

3-
namespace spec\Indigo\Supervisor\Event\Listener;
3+
namespace spec\Supervisor\Event\Listener;
44

55
use GuzzleHttp\Stream\StreamInterface;
6-
use Indigo\Supervisor\Stub\Handler;
6+
use Supervisor\Stub\Handler;
77
use PhpSpec\ObjectBehavior;
88

99
class GuzzleSpec extends ObjectBehavior
@@ -15,12 +15,12 @@ function let(StreamInterface $inputStream, StreamInterface $outputStream)
1515

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

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

2626
function it_has_an_input_stream(StreamInterface $inputStream)

spec/Event/Listener/StandardSpec.php

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

3-
namespace spec\Indigo\Supervisor\Event\Listener;
3+
namespace spec\Supervisor\Event\Listener;
44

5-
use Indigo\Supervisor\Stub\Handler;
5+
use Supervisor\Stub\Handler;
66
use PhpSpec\ObjectBehavior;
77

88
class StandardSpec extends ObjectBehavior
99
{
1010
function it_is_initializable()
1111
{
12-
$this->shouldHaveType('Indigo\Supervisor\Event\Listener\Standard');
12+
$this->shouldHaveType('Supervisor\Event\Listener\Standard');
1313
}
1414

1515
function it_is_a_listener()
1616
{
17-
$this->shouldImplement('Indigo\Supervisor\Event\Listener');
17+
$this->shouldImplement('Supervisor\Event\Listener');
1818
}
1919

2020
function it_has_an_input_stream()

spec/Event/NotificationSpec.php

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

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

55
use PhpSpec\ObjectBehavior;
66

@@ -29,7 +29,7 @@ function let()
2929

3030
function it_is_initializable()
3131
{
32-
$this->shouldHaveType('Indigo\Supervisor\Event\Notification');
32+
$this->shouldHaveType('Supervisor\Event\Notification');
3333
}
3434

3535
function it_has_a_name()

src/Event/Handler.php

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

33
/*
4-
* This file is part of the Indigo Supervisor package.
4+
* This file is part of the Supervisor Event 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\Event;
12+
namespace Supervisor\Event;
1313

14-
use Indigo\Supervisor\Exception\EventHandlingFailed;
15-
use Indigo\Supervisor\Exception\StopListener;
14+
use Supervisor\Exception\EventHandlingFailed;
15+
use Supervisor\Exception\StopListener;
1616

1717
/**
1818
* Handles Notifications

0 commit comments

Comments
 (0)