knpuniversity / symfony-journey Goto Github PK
View Code? Open in Web Editor NEWJourney to the Center of Symfony: Code and Script
Journey to the Center of Symfony: Code and Script
The preview in knpuniversity.com is a very good trailer... but we want to see the whole movie!
Ids are always lowercase in the container. So if you try to set logger
and then LOGGER
later, it will actually overwrite the previous service.
Thus, Symfony optimizes the code path to retrieve services with their lowercase id (some improvements have been made, and others are still pending in PRs at this time). so using a non-lowercase id when calling get()
will give you a performance penalty (which is not negligeable in case you retrieve lots of services. Ask the Drupal guys who asked for and contributed some of these optimizations)
Thus, using special chars will create issues once you start defining definitions and dumping the compiled container to PHP. The only valid characters when dumping containers are chars allowed in PHP identifiers (letters, digits and some unicode chars), underscores, dots and backslashes (with some conflicts in case you have 2 service ids differing only by a backslash vs a dot in the same place btw, or by an underscore vs no char).
This is why the Symfony best practices are to use dot-separated snake case parts when builing the id.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.