Closed Ocramius closed 10 years ago
https://github.com/DASPRiD/Dash/blob/2271fdbfdb7a627f22cb8cb51223a6ec1a98aeeb/src/Dash/Mvc/Router/Http/Parser/HostnameSegmentFactory.php uses static instances to save instantiation performance logic. Instead, simply sharing the hostname segment routes in the service container would be easier, cleaner and more flexible
Nope, right now the plugin manager does not allow sharing instances based on unique options.
For reference, see #11.
https://github.com/DASPRiD/Dash/blob/2271fdbfdb7a627f22cb8cb51223a6ec1a98aeeb/src/Dash/Mvc/Router/Http/Parser/HostnameSegmentFactory.php uses static instances to save instantiation performance logic. Instead, simply sharing the hostname segment routes in the service container would be easier, cleaner and more flexible