Closed acelaya closed 5 years ago
By the moment I have just workaround this by creating those files returning a dummy empty function.
Related to these lines:
The pipeline and routes config are always loaded. They should only load if those files exist. Better yet, there should be a separate check for each in case someone mixes configuration-driven and programmatic pipelines and routes.
@acelaya If you want you can create a PR.
Sure!
Just provided a PR, #52
I'm trying to add zend-expressive-swoole ^2.0 to an existing expressive project, and it fails when running the
start
command with the errorFatal error: require(): Failed opening required 'config/pipeline.php'
.I have checked the
StartCommand
code and seen that it always tries to require bothconfig/pipeline.php
andconfig/routes.php
.Since my project is configuration based, it fiails because those files do not exist.
Is this behavior intended? If not, I could provide a PR which makes sure the command checks those files exist before trying to require them.