updated core and modules
This commit is contained in:
+83
@@ -2,6 +2,89 @@
|
||||
|
||||
All notable changes to this project will be documented in this file, in reverse chronological order by release.
|
||||
|
||||
## 3.0.1 - 2016-04-12
|
||||
|
||||
### Added
|
||||
|
||||
- Nothing.
|
||||
|
||||
### Deprecated
|
||||
|
||||
- Nothing.
|
||||
|
||||
### Removed
|
||||
|
||||
- Nothing.
|
||||
|
||||
### Fixed
|
||||
|
||||
- [#59](https://github.com/zendframework/zend-stdlib/pull/59) fixes a notice
|
||||
when defining the `Zend\Json\Json::GLOB_BRACE` constant on systems using
|
||||
non-gcc glob implementations.
|
||||
|
||||
## 3.0.0 - 2016-02-03
|
||||
|
||||
### Added
|
||||
|
||||
- [#51](https://github.com/zendframework/zend-stdlib/pull/51) adds PHP 7 as a
|
||||
supported PHP version.
|
||||
- [#51](https://github.com/zendframework/zend-stdlib/pull/51) adds a migration
|
||||
document from v2 to v3. Hint: if you use hydrators, you need to be using
|
||||
zend-hydrator instead!
|
||||
- [#51](https://github.com/zendframework/zend-stdlib/pull/51) adds automated
|
||||
documentation builds to gh-pages.
|
||||
|
||||
### Deprecated
|
||||
|
||||
- Nothing.
|
||||
|
||||
### Removed
|
||||
|
||||
- [#33](https://github.com/zendframework/zend-stdlib/pull/33) - removed
|
||||
deprecated classes
|
||||
- *All Hydrator classes* see #22.
|
||||
- `Zend\Stdlib\CallbackHandler` see #35
|
||||
- [#37](https://github.com/zendframework/zend-stdlib/pull/37) - removed
|
||||
deprecated classes and polyfills:
|
||||
- `Zend\Stdlib\DateTime`; this had been deprecated since 2.5, and only
|
||||
existed as a polyfill for the `createFromISO8601()` support, now standard
|
||||
in all PHP versions we support.
|
||||
- `Zend\Stdlib\Exception\InvalidCallbackException`, which was unused since #33.
|
||||
- `Zend\Stdlib\Guard\GuardUtils`, which duplicated `Zend\Stdlib\Guard\AllGuardsTrait`
|
||||
to allow usage with pre-PHP 5.4 versions.
|
||||
- `src/compatibility/autoload.php`, which has been dprecated since 2.5.
|
||||
- [#37](https://github.com/zendframework/zend-stdlib/pull/37) - removed
|
||||
unneeded dependencies:
|
||||
- zend-config (used only in testing ArrayUtils, and the test was redundant)
|
||||
- zend-serializer (no longer used)
|
||||
- [#51](https://github.com/zendframework/zend-stdlib/pull/51) removes the
|
||||
documentation for hydrators, as those are part of the zend-hydrator
|
||||
component.
|
||||
|
||||
### Fixed
|
||||
|
||||
- Nothing.
|
||||
|
||||
## 2.7.4 - 2015-10-15
|
||||
|
||||
### Added
|
||||
|
||||
- Nothing.
|
||||
|
||||
### Deprecated
|
||||
|
||||
- [#35](https://github.com/zendframework/zend-stdlib/pull/35) deprecates
|
||||
`Zend\Stdlib\CallbackHandler`, as the one component that used it,
|
||||
zend-eventmanager, will no longer depend on it starting in v3.
|
||||
|
||||
### Removed
|
||||
|
||||
- Nothing.
|
||||
|
||||
### Fixed
|
||||
|
||||
- Nothing.
|
||||
|
||||
## 2.7.3 - 2015-09-24
|
||||
|
||||
### Added
|
||||
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
# Contributor Code of Conduct
|
||||
|
||||
The Zend Framework project adheres to [The Code Manifesto](http://codemanifesto.com)
|
||||
as its guidelines for contributor interactions.
|
||||
|
||||
## The Code Manifesto
|
||||
|
||||
We want to work in an ecosystem that empowers developers to reach their
|
||||
potential — one that encourages growth and effective collaboration. A space that
|
||||
is safe for all.
|
||||
|
||||
A space such as this benefits everyone that participates in it. It encourages
|
||||
new developers to enter our field. It is through discussion and collaboration
|
||||
that we grow, and through growth that we improve.
|
||||
|
||||
In the effort to create such a place, we hold to these values:
|
||||
|
||||
1. **Discrimination limits us.** This includes discrimination on the basis of
|
||||
race, gender, sexual orientation, gender identity, age, nationality, technology
|
||||
and any other arbitrary exclusion of a group of people.
|
||||
2. **Boundaries honor us.** Your comfort levels are not everyone’s comfort
|
||||
levels. Remember that, and if brought to your attention, heed it.
|
||||
3. **We are our biggest assets.** None of us were born masters of our trade.
|
||||
Each of us has been helped along the way. Return that favor, when and where
|
||||
you can.
|
||||
4. **We are resources for the future.** As an extension of #3, share what you
|
||||
know. Make yourself a resource to help those that come after you.
|
||||
5. **Respect defines us.** Treat others as you wish to be treated. Make your
|
||||
discussions, criticisms and debates from a position of respectfulness. Ask
|
||||
yourself, is it true? Is it necessary? Is it constructive? Anything less is
|
||||
unacceptable.
|
||||
6. **Reactions require grace.** Angry responses are valid, but abusive language
|
||||
and vindictive actions are toxic. When something happens that offends you,
|
||||
handle it assertively, but be respectful. Escalate reasonably, and try to
|
||||
allow the offender an opportunity to explain themselves, and possibly correct
|
||||
the issue.
|
||||
7. **Opinions are just that: opinions.** Each and every one of us, due to our
|
||||
background and upbringing, have varying opinions. The fact of the matter, is
|
||||
that is perfectly acceptable. Remember this: if you respect your own
|
||||
opinions, you should respect the opinions of others.
|
||||
8. **To err is human.** You might not intend it, but mistakes do happen and
|
||||
contribute to build experience. Tolerate honest mistakes, and don't hesitate
|
||||
to apologize if you make one yourself.
|
||||
@@ -237,3 +237,8 @@ repository, we suggest doing some cleanup of these branches.
|
||||
```console
|
||||
$ git push {username} :<branchname>
|
||||
```
|
||||
|
||||
|
||||
## Conduct
|
||||
|
||||
Please see our [CONDUCT.md](CONDUCT.md) to understand expected behavior when interacting with others in the project.
|
||||
|
||||
-1
@@ -7,7 +7,6 @@
|
||||
class for different scopes like:
|
||||
|
||||
- array utilities functions;
|
||||
- hydrators;
|
||||
- json serializable interfaces;
|
||||
- general messaging systems;
|
||||
- string wrappers;
|
||||
|
||||
+3
-18
@@ -13,32 +13,17 @@
|
||||
}
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.5",
|
||||
"zendframework/zend-hydrator": "~1.0"
|
||||
"php": "^5.5 || ^7.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"zendframework/zend-config": "~2.5",
|
||||
"zendframework/zend-eventmanager": "~2.5",
|
||||
"zendframework/zend-inputfilter": "~2.5",
|
||||
"zendframework/zend-serializer": "~2.5",
|
||||
"zendframework/zend-servicemanager": "~2.5",
|
||||
"zendframework/zend-filter": "~2.5",
|
||||
"fabpot/php-cs-fixer": "1.7.*",
|
||||
"phpunit/PHPUnit": "~4.0",
|
||||
"athletic/athletic": "~0.1"
|
||||
},
|
||||
"suggest": {
|
||||
"zendframework/zend-eventmanager": "To support aggregate hydrator usage",
|
||||
"zendframework/zend-serializer": "Zend\\Serializer component",
|
||||
"zendframework/zend-servicemanager": "To support hydrator plugin manager usage",
|
||||
"zendframework/zend-filter": "To support naming strategy hydrator usage"
|
||||
},
|
||||
"minimum-stability": "dev",
|
||||
"prefer-stable": true,
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "2.7-dev",
|
||||
"dev-develop": "2.8-dev"
|
||||
"dev-master": "3.0-dev",
|
||||
"dev-develop": "3.1-dev"
|
||||
}
|
||||
},
|
||||
"autoload-dev": {
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
<div class="container">
|
||||
<div class="jumbotron">
|
||||
<h1>zend-stdlib</h1>
|
||||
|
||||
<p>SPL extensions, array utilities, error handlers, and more.</p>
|
||||
|
||||
<pre><code class="language-bash">$ composer require zendframework/zend-stdlib</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
# zend-stdlib
|
||||
|
||||
[](https://secure.travis-ci.org/zendframework/zend-stdlib)
|
||||
[](https://coveralls.io/r/zendframework/zend-stdlib?branch=master)
|
||||
|
||||
`Zend\Stdlib` is a set of components that implements general purpose utility
|
||||
class for different scopes like:
|
||||
|
||||
- array utilities functions;
|
||||
- json serializable interfaces;
|
||||
- general messaging systems;
|
||||
- string wrappers;
|
||||
- etc.
|
||||
|
||||
---
|
||||
|
||||
- File issues at https://github.com/zendframework/zend-stdlib/issues
|
||||
- Documentation is at http://framework.zend.com/manual/current/en/index.html#zend-stdlib
|
||||
@@ -0,0 +1,60 @@
|
||||
# Migration Guide
|
||||
|
||||
## From v2 to v3
|
||||
|
||||
The changes made going from v2 to v3 were:
|
||||
|
||||
- Removal of the Hydrator subcomponent.
|
||||
- Removal of the `CallbackHandler` class.
|
||||
- Removal of `Zend\Stdlib\Guard\GuardUtils`.
|
||||
|
||||
### Hydrators
|
||||
|
||||
The biggest single change from version 2 to version 3 is that the hydrator
|
||||
subcomponent, which was deprecated in v2.7.0, is now removed. This means that if
|
||||
you were using zend-stdlib principally for the hydrators, you need to convert
|
||||
your code to use [zend-hydrator](https://github.com/zendframework/zend-hydrator).
|
||||
|
||||
This will also mean a multi-step migration. zend-stdlib v3 pre-dates
|
||||
zend-hydrator v2.1, which will be the first version that supports zend-stdlib v3
|
||||
and zend-servicemanager v3. If you are using Composer, the migration should be
|
||||
seamless:
|
||||
|
||||
- Remove your zend-stdlib dependency:
|
||||
|
||||
```bash
|
||||
$ composer remove zendframework/zend-stdlib
|
||||
```
|
||||
|
||||
- Update to use zend-hydrator:
|
||||
|
||||
```bash
|
||||
$ composer require zendframework/zend-hydrator
|
||||
```
|
||||
|
||||
When zend-hydrator updates to newer versions of zend-stdlib and
|
||||
zend-servicemanager, you will either automatically get those versions, or you
|
||||
can tell composer to use those specific versions:
|
||||
|
||||
```bash
|
||||
$ composer require "zendframework/zend-stdlib:^3.0"
|
||||
```
|
||||
|
||||
### CallbackHandler
|
||||
|
||||
`Zend\Stdlib\CallbackHandler` primarily existed for legacy purposes; it was
|
||||
created before the `callable` typehint existed, so that we could typehint PHP
|
||||
callables. It also provided some minimal features around lazy-loading callables
|
||||
from instantiable classes, but these features were rarely used, and better
|
||||
approaches already exist for handling such functinality in zend-servicemanager
|
||||
and zend-expressive.
|
||||
|
||||
As such, the class was marked deprecated in v2.7.0, and removed for v3.0.0.
|
||||
|
||||
### GuardUtils
|
||||
|
||||
Version 3 removes `Zend\Stdlib\Guard\GuardUtils`. This abstract class existed to
|
||||
provide the functionality of the various traits also present in that
|
||||
subcomponent, for consumers on versions of PHP earlier than 5.4. Since the
|
||||
minimum required version is now PHP 5.5, the class is unnecessary. If you were
|
||||
using it previously, compose the related traits instead.
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"title": "Zend\\Stdlib",
|
||||
"target": "html/",
|
||||
"content": [
|
||||
"book/zend.stdlib.hydrator.md",
|
||||
"book/zend.stdlib.hydrator.filter.md",
|
||||
"book/zend.stdlib.hydrator.strategy.md",
|
||||
"book/zend.stdlib.hydrator.aggregate.md",
|
||||
"book/zend.stdlib.hydrator.namingstrategy.compositenamingstrategy.md",
|
||||
"book/zend.stdlib.hydrator.namingstrategy.identitynamingstrategy.md",
|
||||
"book/zend.stdlib.hydrator.namingstrategy.mapnamingstrategy.md",
|
||||
"book/zend.stdlib.hydrator.namingstrategy.underscorenamingstrategy.md"
|
||||
]
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
docs_dir: doc/book
|
||||
site_dir: doc/html
|
||||
pages:
|
||||
- index.md
|
||||
- Migration: migration.md
|
||||
site_name: zend-stdlib
|
||||
site_description: Zend\Stdlib
|
||||
repo_url: 'https://github.com/zendframework/zend-stdlib'
|
||||
copyright: 'Copyright (c) 2016 <a href="http://www.zend.com/">Zend Technologies USA Inc.</a>'
|
||||
+1
-1
@@ -61,7 +61,7 @@ abstract class Glob
|
||||
self::GLOB_NOSORT => GLOB_NOSORT,
|
||||
self::GLOB_NOCHECK => GLOB_NOCHECK,
|
||||
self::GLOB_NOESCAPE => GLOB_NOESCAPE,
|
||||
self::GLOB_BRACE => GLOB_BRACE,
|
||||
self::GLOB_BRACE => defined('GLOB_BRACE') ? GLOB_BRACE : 0,
|
||||
self::GLOB_ONLYDIR => GLOB_ONLYDIR,
|
||||
self::GLOB_ERR => GLOB_ERR,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user