M
M
Maks Burkov2018-02-17 02:19:41
Laravel
Maks Burkov, 2018-02-17 02:19:41

Laravel, Booted vs hasBeenBootstrapped?

What's the difference between booted vs hasBeenBootstrapped properties ?
Wiki
According to the wiki it seems to be the same thing , someone who has been working with Laravel for a long time will explain what is the difference ?
Sample code from Laravel main class when loading index.php and config/app.php ..

class Application extends Container implements ApplicationContract, HttpKernelInterface
{
    /**
     * The Laravel framework version.
     *
     * @var string
     */
    const VERSION = '5.5.34';

    /**
     * The base path for the Laravel installation.
     *
     * @var string
     */
    protected $basePath;

    /**
     * Indicates if the application has been bootstrapped before.
     *
     * @var bool
     */
    protected $hasBeenBootstrapped = false;

    /**
     * Indicates if the application has "booted".
     *
     * @var bool
     */
    protected $booted = false;
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question