Category : autoload

I am trying to autoload just a PHP file without any class in it but with helper functions instead. Something like Laravel helpers so: <?php if (!function_exists(‘fixture’)) { function fixture() { // some code here } } According to the docs it’s quite easy, I am doing something like that: "autoload": { "files": [ "src/Helpers/helpers.php" ..

Read more

In development mode, when i execute this command symfony server:start -d The application works verry well. But when i writes the http://localhost/wafrica2/public/app_dev.php url, this error points out. Warning: require(C:xampphtdocsmyprojectpublic/../app/autoload.php): failed to open stream: No such file or directory in C:xampphtdocsmyprojectpublicapp_dev.php on line 21 This is autoload.php file It is the same error that arises when ..

Read more

I create a bundle like this <?php namespace CDCBasementBundleUtilBundle; use SymfonyComponentHttpKernelBundleBundle; class CDCUtilBundle extends Bundle {} and add composer.json file on root directory of my bundle folder, and put this in autoload “psr-4”: { “CDCBasementBundleUtilBundle”: “src/” }, the main class located in /src folder. After I run composer dump-autoload command, but I get this error: ..

Read more

Attempting to run an API with PHP PowerPoint generation by inclusion of a script with an auto loader pointing to my vendor directory under a custom /api/libraries/PhpPresentation directory results in a warning. Warning: require(C:wamp64wwwprojectaimapilibrariesPhpPresentationvendorphpofficephppresentationvendorcomposer/../symfony/polyfill-mbstring/bootstrap.php): failed to open stream: No such file or directory in C:wamp64wwwprojectaimapilibrariesPhpPresentationvendorphpofficephppresentationvendorcomposerautoload_real.php on line 70 How do I fix this? Source: Symfony ..

Read more