The extension controller documentation has a code block with the following (link):
If you use that code as-is, you'll get the following fatal error:
The namespace must go before the dependancy usage.
Code:
<?phpuse \Symfony\Component\HttpFoundation\Response;namespace acme\demo\controller;class main
Code:
Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script
Statistics: Posted by danieltj — Tue Apr 30, 2024 4:45 pm