Comments (6)
Generally when using symfony/console
, using a container allows you to configure (manually, I don't think it's out the box, can't remember) lazy-loading services meaning unused dependencies aren't initiated :)
from psr-container-doctrine.
It's been a while since I looked at that; if we can verify the service configuration really isn't needed, then it should be removed from docs 👍
from psr-container-doctrine.
I tried to search for a code that uses these services in the whole project, but I can't find one. How can we verify this for sure?
from psr-container-doctrine.
@thexpand the example is just "how you might configure it in your project". If you don't need/want to register your commands as services, then that is fine, just skip that step. Perhaps clarification on the docs would help :)
from psr-container-doctrine.
I tried to search for a code that uses these services in the whole project, but I can't find one. How can we verify this for sure?
Oh and you won't find any services used in this project, if that's what you mean? This library does not consume services, it only provides factories so you can wire them into your container.
from psr-container-doctrine.
@asgrim Ah, I understand now. But why would you need them as services in the first place? Can you give me an example of a possible scenario for this? The only possible use case I can think of is to execute a migration command in another symfony-console custom command that I have in the application.
from psr-container-doctrine.
Related Issues (20)
- Migrations: Document how to use a custom version comparator
- DriverFactory doesn't work with Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain HOT 2
- Slice the codebase into the doctrine libraries HOT 7
- Multiple EntityManagers wont work due to invalid AbstractFactory HOT 6
- Conflict dependencies updating to doctrine orm 2.8 HOT 9
- Roll out `laminas/automatic-releases` here
- Little mistake in "aliases" example? (documentation) HOT 1
- Wiring up Migrations HOT 5
- DriverFactory incompatible with AttributeDriver HOT 1
- Class 'Doctrine\Common\Cache\ArrayCache' not found with doctrine/cache 2.x upgrade HOT 2
- Missing "class" config key on Laminas Mezzio
- Functional config example for doctrine with mezzio HOT 1
- DriverFactory.php incompatible with doctrine/common: "^3.0" HOT 5
- Dependency range is broken HOT 5
- Missing configuration file when using the CLI HOT 4
- Call to a member function getClassAnnotations() on array with doctrine/orm:^2.12 HOT 10
- Support doctrine/persistence 3.0 with ORM 2.12 HOT 4
- Dependency Dashboard
- Issues with my configuration because of an issue running orm:mapping:describe HOT 1
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 psr-container-doctrine.