Welcome Guest, Not a member yet? Register   Sign In
Dynamically changing supported languages
#13

It ignores it because the app/Config/Config.php is injected into and loaded by CodeIgniter in the begining.

CodeIgniter.php

PHP Code:
   /**
    * Constructor.
    */
    public function __construct(App $config)
    {
        if (version_compare(PHP_VERSIONself::MIN_PHP_VERSION'<')) {
            // @codeCoverageIgnoreStart
            $message extension_loaded('intl')
                lang('Core.invalidPhpVersion', [self::MIN_PHP_VERSIONPHP_VERSION])
                sprintf('Your PHP version must be %s or higher to run CodeIgniter. Current version: %s'self::MIN_PHP_VERSIONPHP_VERSION);

            exit($message);
            // @codeCoverageIgnoreEnd
        }

        $this->startTime microtime(true);
        $this->config    $config;
    


Now you see why.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: Dynamically changing supported languages - by InsiteFX - 10-31-2021, 01:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB