Hi,
Mostly I have been using CI without composer by directly downloading. Today I wanted to add TWIG so I decided to use composer.
To my surprise the number of loaded files increased by 25 even in PRODUCTION environment.
I am sure I dont need
Kint in production & as I am not hosting my app on multiple PHP versions so I dont need
POLYFILL as well. I also dont need many other needlessly loaded files as shown below.
Kindly advise how to disable their autoloading in Production Environment?
Following is list of files as mentioned above:
- D:\dev\vendor\symfony\polyfill-php80\bootstrap.php
- D:\dev\vendor\phpstan\phpstan\bootstrap.php
- D:\dev\vendor\symfony\polyfill-ctype\bootstrap.php
- D:\dev\vendor\phpunit\phpunit\src\Framework\Assert\Functions.php
- D:\dev\vendor\symfony\deprecation-contracts\function.php
- D:\dev\vendor\symfony\polyfill-mbstring\bootstrap.php
- D:\dev\vendor\symfony\polyfill-php73\bootstrap.php
- D:\dev\vendor\symfony\var-dumper\Resources\functions\dump.php
- D:\dev\vendor\symfony\polyfill-intl-grapheme\bootstrap.php
- D:\dev\vendor\symfony\polyfill-intl-normalizer\bootstrap.php
- D:\dev\vendor\laminas\laminas-zendframework-bridge\src\autoload.php
- D:\dev\vendor\laminas\laminas-zendframework-bridge\src\Autoloader.php
- D:\dev\vendor\laminas\laminas-zendframework-bridge\src\RewriteRules.php
- D:\dev\vendor\myclabs\deep-copy\src\DeepCopy\deep_copy.php
- D:\dev\vendor\phpseclib\phpseclib\phpseclib\bootstrap.php
- D:\dev\vendor\symfony\string\Resources\functions.php
- D:\dev\app\Config\Kint.php
- D:\dev\vendor\kint-php\kint\init.php
- D:\dev\vendor\kint-php\kint\src\Kint.php
- D:\dev\vendor\kint-php\kint\src\Utils.php
- D:\dev\vendor\kint-php\kint\init_helpers.php
- D:\dev\vendor\kint-php\kint\src\Renderer\Renderer.php
- D:\dev\vendor\kint-php\kint\src\Renderer\RichRenderer.php
- D:\dev\vendor\kint-php\kint\src\Renderer\CliRenderer.php
- D:\dev\vendor\kint-php\kint\src\Renderer\TextRenderer.php