Welcome Guest, Not a member yet? Register   Sign In
Unnecessary Files Loaded in Production Environment - Codeigniter 4.1.1
#1
Star 

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
Reply


Messages In This Thread
Unnecessary Files Loaded in Production Environment - Codeigniter 4.1.1 - by myo - 02-20-2021, 12:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB