Comments (8)
@thomasvargiu or maybe Zend\PhpDi\Config as we are bridging php-di
from zend-di-config.
I consider Zend\*
namespace Zend proprietary, you should use something that own to you. That's also true that Zend probably will not release nothing with Zend\PhpDi
namespace, but I still that a your own namespace would be better. In open source projects we are not extending anymore some other namespaces.
from zend-di-config.
I followed pimple and other bridge namespace. It was accepted and integrated to zend expressive installer.
However any namespace change would mean a version 3.1+ at least because it is considered a Break Change.
from zend-di-config.
@elie29 changing the namespace I think it's a big BC. Classes are public API's, if you change it, it's a BC.
Even if the common use is to add services to the configuration, anyone could use your ConfigBuilder or some other classes.
from zend-di-config.
I think in our case, it wouldn't be a big BC, you need to change just the container.php with zend expressive. It is the only place where you use Zend/DI/Config.
IMHO, I use Zend/PhpDi/Config as Zend/Pimple/Config. What do you think better then Elie/Zend/PhpDi/Config?
from zend-di-config.
@elie29 PHP libraries should use semver.
I usually add dependencies in composer.json
with vendor/package:^1.0
and I expect to don't need changes if I do a composer update
and vendor/package
is updated to 1.1
.
Changing the namespace means it isn't backward-compatible, that's why we should increase the major version.
For the namespace name, it's your choose. I just suggested to make your own namespace (you can use it even for other libraries), but you can just even use a simple namespace like ZendPhpDiConfig
. I know, it's a very long name and I don't like neither, it was just an example :)
You can choose and make these changes, it should be easy.
from zend-di-config.
@thomasvargiu ok. I will tag these two issues v4 and try to resolve the #28 first. It will be certainly on a new branch.
from zend-di-config.
@thomasvargiu I have created two branches:
- branch 3.x created to support future release related to v3
- branch 4.0 where I changed the namesapece to Elie\Zend\DI\Config with the migration guide
I will close this issue and assign the #27 so you can add definitions key to the branch v4. Once done, we merge it with master branch.
from zend-di-config.
Related Issues (20)
- Use Expressive Skeleton installer with PHP-DI results in error? HOT 10
- Allow to declare custom definitions HOT 9
- Zend\Di namespace HOT 4
- Update contributing.md document
- Add 7.3 support to travis
- Allow to disable use autowire
- Launch composer update HOT 1
- Circular dependency detected HOT 3
- Update composer HOT 2
- Make overridden delegator idempotent
- Delete container-interop/container-interop HOT 2
- migrate to laminas framework
- scalar constructor / property injection etc. HOT 1
- Compile with Delegators HOT 3
- migration to php 8 HOT 2
- Psalm (static analysis tool) integration instead of phpstan
- Support writing proxy classes to files HOT 5
- Container compilation and delegators HOT 3
- PHP8.1 Compatibility HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zend-di-config.