Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 28b26ff

Browse files
committed
Merge branch 'hotfix/26' into develop
Forward port #26
2 parents e6bf66a + 6108de3 commit 28b26ff

File tree

12 files changed

+59
-61
lines changed

12 files changed

+59
-61
lines changed

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
.*.sw*
77
.*.un~
88
nbproject
9+
doc/html/
910
tmp/
11+
vendor/
12+
zf-mkdoc-theme/
1013

1114
clover.xml
1215
composer.lock
1316
coveralls-upload.json
1417
phpunit.xml
15-
doc/html/
16-
vendor/

.travis.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ branches:
1010
cache:
1111
directories:
1212
- $HOME/.composer/cache
13+
- $HOME/.local
14+
- zf-mkdoc-theme
15+
16+
env:
17+
global:
18+
- SITE_URL: https://zendframework.github.io/zend-eventmanager
19+
- GH_USER_NAME: "Matthew Weier O'Phinney"
20+
- GH_USER_EMAIL: [email protected]
21+
- GH_REF: github.com/zendframework/zend-eventmanager.git
22+
- secure: "q6mC+KhLKsPYD22R9RI7lLhQGF5dSQ0QttmaFSQf/wtIntruVIFoyWt8ObR3zFsZ4xxra8MZFV2AjbMM9vqB28aHZ1jV5kbCbhTfSbdv0GT4nwqIHh84Ui7gCykJBqyyboWf/ekOv87cbuTg3EbqJcgdBh6/oyRGIVVB3HQayJJTTUCz+TQ/M4mpvOE+61FGpu6WLv465R8aKRi0ZLjk6qMtAY616cnGlPBOoNopyQM2+VTGyLOFgwnCUae3l4MSc8zsWgA4FLwttsYOzoVXit1ZXcqAt+XCAxUMntT3esIKVdeNejqQ7ZhMdMJpbdXTgfOD9kPt4fbNrcyg12Zkl0F3lHUNMb22PWNXb7tZ3+E4pR8B+6GtKXLRleEl9sPUKhxZ0CgwQErqOE8Osnw+BeNjueosNzJvrpxdHLX1a1+1v4VZIcikK+btW6YS+YLjZJgd80LI/4vQByUehgfFRuJnmjkMp+p9NN+PphdYHcQLfe2VU+qif114cR2WAyaiJ47zXMu2+vqp9sR20M2CfKZXrihiSO+CdbhSmep3sWaCuLWZtpsMx7u3rKl1o5doGLmkYAc+OaCEw5mZ/nVxzkH2ldNNcCeV2+ENKj4zlKoVXy1MB0KTT2U2rJ4pO5WhYLORbgBNNKeuD8r5nl65Dhn3gaIPXvlica/jIqay+/U="
1323

1424
matrix:
1525
fast_finish: true
@@ -21,6 +31,8 @@ matrix:
2131
- php: 5.6
2232
env:
2333
- EXECUTE_TEST_COVERALLS=true
34+
- DEPLOY_DOCS="$(if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then echo -n 'true' ; else echo -n 'false' ; fi)"
35+
- PATH="$HOME/.local/bin:$PATH"
2436
- php: 7
2537
- php: hhvm
2638
allow_failures:
@@ -33,21 +45,20 @@ notifications:
3345
before_install:
3446
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
3547
- composer self-update
36-
- if [[ $EXECUTE_DOC_CHECK == 'true' ]]; then composer require --dev --no-update phly/bookdown2mkdocs ; fi
3748
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then composer require --dev --no-update satooshi/php-coveralls ; fi
3849

3950
install:
4051
- travis_retry composer install --no-interaction --ignore-platform-reqs --prefer-source
4152
- composer info -i
4253

43-
before_script:
44-
- if [[ $EXECUTE_DOC_CHECK == 'true' ]]; then cp mkdocs.yml mkdocs.yml.orig ; fi
45-
4654
script:
4755
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/phpunit --coverage-clover clover.xml ; fi
4856
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then ./vendor/bin/phpunit ; fi
4957
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/phpcs ; fi
50-
- if [[ $EXECUTE_DOC_CHECK == 'true' ]]; then make mkdocs ; diff mkdocs.yml mkdocs.yml.orig ; return $? ; fi
58+
- if [[ $DEPLOY_DOCS == "true" && "$TRAVIS_TEST_RESULT" == "0" ]]; then wget -O theme-installer.sh "https://raw.githubusercontent.com/zendframework/zf-mkdoc-theme/master/theme-installer.sh" ; chmod 755 theme-installer.sh ; ./theme-installer.sh ; fi
59+
60+
after_success:
61+
- if [[ $DEPLOY_DOCS == "true" ]]; then echo "Preparing to build and deploy documentation" ; ./zf-mkdoc-theme/deploy.sh ; echo "Completed deploying documentation" ; fi
5162

5263
after_script:
5364
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/coveralls ; fi

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ All notable changes to this project will be documented in this file, in reverse
2424

2525
### Added
2626

27-
- Nothing.
27+
- [#26](https://github.com/zendframework/zend-eventmanager/pull/26) publishes
28+
the documentation to https://zendframework.github.io/zend-eventmanager/
2829

2930
### Deprecated
3031

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![Build Status](https://secure.travis-ci.org/zendframework/zend-eventmanager.svg?branch=master)](https://secure.travis-ci.org/zendframework/zend-eventmanager)
44
[![Coverage Status](https://coveralls.io/repos/zendframework/zend-eventmanager/badge.svg?branch=master)](https://coveralls.io/r/zendframework/zend-eventmanager?branch=master)
55

6-
The `Zend\EventManager` is a component designed for the following use cases:
6+
zend-eventmanager is designed for the following use cases:
77

88
- Implementing simple subject/observer patterns.
99
- Implementing Aspect-Oriented designs.
@@ -14,10 +14,10 @@ both on a per-instance basis as well as via shared collections; trigger events;
1414
and interrupt execution of listeners.
1515

1616
- File issues at https://github.com/zendframework/zend-eventmanager/issues
17-
- Documentation is at http://zend-eventmanager.rtfd.org
17+
- Documentation is at https://zendframework.github.io/zend-eventmanager/
1818

1919
For migration from version 2 to version 3, please [read the migration
20-
documentation](http://zend-eventmanager.readthedocs.org/en/latest/migration/intro/).
20+
documentation](https://zendframework.github.io/zend-eventmanager/migration/intro/).
2121

2222
## Benchmarks
2323

doc/book/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ $events->triggerUntil(function ($result) {
114114
In the above example, the event loop will short-circuit after the second
115115
listener executes, resulting in the following output:
116116

117-
```
117+
```text
118118
Triggered first
119119
Triggered second
120120
```

doc/book/examples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ class CacheListener implements ListenerAggregateInterface
206206

207207
We can then attach the aggregate to an event manager instance.
208208

209-
```
209+
```php
210210
$value = new SomeValueObject();
211211
$cacheListener = new CacheListener($cache);
212212
$cacheListener->attach($value->getEventManager());

doc/book/index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<div class="container">
2+
<div class="jumbotron">
3+
<h1>zend-eventmanager</h1>
4+
5+
<p>
6+
Implement events, signal slots, aspects, and observers!
7+
</p>
8+
9+
<pre><code class="language-bash">$ composer require zendframework/zend-eventmanager</code></pre>
10+
</div>
11+
</div>
12+

doc/book/lazy-listeners/bookdown.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

doc/book/migration/bookdown.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

doc/book/tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ $events->trigger('do', null, $params);
4444

4545
The above will result in the following:
4646

47-
```
47+
```text
4848
Handled event "do", with parameters {"foo":"bar","baz":"bat"}
4949
```
5050

@@ -176,7 +176,7 @@ $example->do('bar', 'bat');
176176

177177
and expect the following output:
178178

179-
```
179+
```text
180180
Handled event "do" on target "Example", with parameters {"foo":"bar","baz":"bat"}
181181
```
182182

doc/bookdown.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

mkdocs.yml

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,25 @@ docs_dir: doc/book
22
site_dir: doc/html
33
pages:
44
- index.md
5-
- { Overview: intro.md }
6-
- { 'Quick Start': quick-start.md }
7-
- { Tutorial: tutorial.md }
8-
- { 'Wildcard Listeners': wildcard-listeners.md }
9-
- { 'Listener Aggregates': aggregates.md }
10-
- { 'Lazy Listeners': [{ Introduction: lazy-listeners/intro.md }, { LazyListener: lazy-listeners/lazy-listener.md }, { LazyEventListener: lazy-listeners/lazy-event-listener.md }, { LazyListenerAggregate: lazy-listeners/lazy-listener-aggregate.md }] }
11-
- { Examples: examples.md }
12-
- { 'EventManager API': api.md }
13-
- { 'Intercepting Filters': intercepting-filters.md }
14-
- { 'Migration Guide': [{ Introduction: migration/intro.md }, { 'Removed Functionality': migration/removed.md }, { 'Changed Functionality': migration/changed.md }] }
5+
- Intro: intro.md
6+
- "Quick Start": quick-start.md
7+
- Tutorial: tutorial.md
8+
- Examples: examples.md
9+
- Reference:
10+
- "Wildcard Listeners": wildcard-listeners.md
11+
- "Listener Aggregates": aggregates.md
12+
- "Lazy Listeners":
13+
- Intro: lazy-listeners/intro.md
14+
- LazyListener: lazy-listeners/lazy-listener.md
15+
- LazyEventListener: lazy-listeners/lazy-event-listener.md
16+
- LazyListenerAggregate: lazy-listeners/lazy-listener-aggregate.md
17+
- "EventManager API": api.md
18+
- "Intercepting Filters": intercepting-filters.md
19+
- "Migration Guide":
20+
- Intro: migration/intro.md
21+
- "Removed Functionality": migration/removed.md
22+
- "Changed Functionality": migration/changed.md
1523
site_name: zend-eventmanager
16-
site_description: 'zend-eventmanager: Powerful event bus system for Zend Framework'
24+
site_description: "zend-eventmanager: Implement events, signal slots, aspects, and observers!"
1725
repo_url: 'https://github.com/zendframework/zend-eventmanager'
1826
copyright: 'Copyright (c) 2016 <a href="http://www.zend.com/">Zend Technologies USA Inc.</a>'

0 commit comments

Comments
 (0)