Symfony\Component\HttpKernel\Kernel::stripComments
Removes comments from a PHP source string.
We don't use the PHP php_strip_whitespace() function as we want the content to be readable and well-formatted.
Signature
public function stripComments(string
$source )
Parameters
$source
— string- A PHP string
Returns
- string
- The PHP string with the comments removed