2017 © Pedro Peláez
 

library controller-using-templating-http-foundation-http-kernel

Controller which renders a template and returns a response (HttpFoundation): dependency check for use by http-kernel

image

symfony-util/controller-using-templating-http-foundation-http-kernel

Controller which renders a template and returns a response (HttpFoundation): dependency check for use by http-kernel

  • Sunday, June 17, 2018
  • by Nardberjean
  • Repository
  • 1 Watchers
  • 0 Stars
  • 212 Installations
  • PHP
  • 1 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 3 % Grown

The README.md

controller-using-templating-http-foundation-http-kernel

Controller which renders a template and returns a response (HttpFoundation): dependency check for use by http-kernel, (*1)

PHPPackages Rank Monthly Downloads PHPPackages Referenced By Tested PHP Versions Dependency Status Build Status, (*2)

Scrutinizer SensioLabsInsight , (*3)

Usefullness

  • To be sure than Symfony >= 3.3 as required to call the controller with templating engin as argument.
  • Additional functional testing calling the controller from HttpKernel or FrameworkBundle.

Possible improvements

  • Does not pass test with Symfony 4. Travis 445, using Symfony 4, shows mixed components from Symfony 3 and 4 and fails all tests due to bad configuration. Symfony 3.4 fails in a may be similar way.
  • Use (yaml) configuraton for test Kernel(s), instead of in php code configuration
  • Tests do not use 2 Kernels as intended, the first one configured is the only one! Corrected, OK now!

Should be a composer metapackage

  • metapackage
  • Maybe all the PHP code has to be moved somewhere else!

Icon: https://material.io/icons/#ic_wallpaper, (*4)

The Versions