protected function mergeProjectComposerTemplate()
    {
        if ($contents = $this->loadTemplateContents('composer.json', 'json')) {
            $this->composer = $this->composer->update($contents);
        }

        return $this;
    }
protected function mergeProjectComposerTemplate()
    {
        if ($contents = $this->loadTemplateContents('composer.json', 'json')) {
            $this->composer = $this->composer->update($contents);
        }

        return $this;
    }
protected function mergeProjectComposerTemplate ( ) { if ( $ contents = $ this -> loadTemplateContents ( 'composer.json' , 'json' ) ) { $ this -> composer = $ this -> composer -> update ( $ contents ) ; } return $ this ; }
Merge project composer template.

This will try and load a composer.json template from the project root. If
not found it will search in the application template root for the
particular project type.

The method only exist so that projects can merge in composer requirements
during the project build cycle. If those requirements were declared in
the composer.json root, and dependencies are needed based on the project
type on which haven't been added yet, can cause issues.

@return self
Merge project composer template .