public function getComposerJSON()
    {
        if (!$this->composerJsonLoaded && !$this->composerJson) {
            $this->composerJsonLoaded = true;
            $this->composerJson = null;
            $jsonFile = new JsonFile(__DIR__ . '/composer.json');
            if ($jsonFile->exists()) {
                $this->composerJson = $jsonFile->read();
            }
        }

        return $this->composerJson;
    }
public function getComposerJSON()
    {
        if (!$this->composerJsonLoaded && !$this->composerJson) {
            $this->composerJsonLoaded = true;
            $this->composerJson = null;
            $jsonFile = new JsonFile(__DIR__ . '/composer.json');
            if ($jsonFile->exists()) {
                $this->composerJson = $jsonFile->read();
            }
        }

        return $this->composerJson;
    }
public function getComposerJSON ( ) { if ( ! $ this -> composerJsonLoaded && ! $ this -> composerJson ) { $ this -> composerJsonLoaded = true ; $ this -> composerJson = null ; $ jsonFile = new JsonFile ( __DIR__ . '/composer.json' ) ; if ( $ jsonFile -> exists ( ) ) { $ this -> composerJson = $ jsonFile -> read ( ) ; } } return $ this -> composerJson ; }
Get the contents of the extension's composer.json file, lazy-loading
as needed.
Get the contents of the extension s composer . json file lazy - loading as needed .