Skip to main content
Skip to main content
Jennifer Lea Lampton
Oakland, California, USA
jen@jenlampton.com
Menu
Toggle menu visibility
Blog
Presentations
Resume
About
Home
»
Comment permalink
»
Edit comment
No mention of dependency
Edit comment
No mention of dependency
Primary tabs
View comment
Edit
(active tab)
Delete
Administration
Authored by
Leave blank for
Anonymous
.
Email
Homepage
Authored on
Status
Published
Not published
Comment
*
No mention of dependency injection. A routing service that provides bi-directional transformation between routes and URLs is a very useful component. So much so, we've had one around since Zend Framework 1, I presume Symfony 1, and better iterations that correctly incorporate dependency injection in both Zend Framework 2 and Symfony 2: http://symfony.com/doc/current/book/routing.html Dependency injection isn't an option, it's the correct way to develop software. I have no idea what "dependency injecting your own links means", but a routing service that can be used to generate links **SHOULD** have it's dependencies injected. Your other option is to hardcode dependencies, making the service inflexible and difficult to test.
Formatting options
Basic
To post pieces of code, surround them with <code>...</code> tags. For PHP code, you can use <?php ... ?>, which will also color it based on syntax.
Web page addresses and email addresses turn into links automatically, unless the parent tag has the 'nolink' class.
Lines and paragraphs break automatically.
Allowed HTML tags: <a> <em> <strong> <blockquote> <code> <ul> <ol> <li> <div> <p> <br> <pre> <h2> <h3> <h4> <h5> <figure> <img> <figcaption> <hr>
Cancel
Leave this field blank
© 2023
Jeneration Web Development