Include statements should not be used 2

  • Minor
  • Architecture

More information: https://insight.symfony.com/what-we-analyse/symfony.include_statement_used

in src/Module.php, line 28
  1. * @see ServiceProviderInterface::getServiceConfig()
  2. * @return array
  3. */
  4. public function getServiceConfig()
  5. {
  6. return require dirname(__DIR__) . '/config/service_manager.config.php';

    Using include() or require() bypasses lazy-loading of third-party classes. Prefer using autoloading.

    Time to fix: about 3 hours
    Open Issue Permalink
    Last edited by Sandro Keil
  7. }
  8. /**
  9. * Expected to return \Zend\ServiceManager\Config object or array to
  10. * seed such an object.
  • sandrokeil

    Ignored on Mon, 01 Sep 2014 04:44:36 GMT
in src/Module.php, line 39
  1. *
  2. * @return array
  3. */
  4. public function getViewHelperConfig()
  5. {
  6. return require dirname(__DIR__) . '/config/view_helper.config.php';

    Using include() or require() bypasses lazy-loading of third-party classes. Prefer using autoloading.

    Time to fix: about 3 hours
    Open Issue Permalink
    Last edited by Sandro Keil
  7. }
  8. }
  • sandrokeil

    Ignored on Tue, 07 Oct 2014 18:57:19 GMT