private function getBackups()
    {
        $backups = $this->getContainer()->getParameter('nanbando.backup');

        $preset = [];
        if ($name = $this->getParameter('nanbando.application.name')) {
            /** @var PresetStore $presetStore */
            $presetStore = $this->getContainer()->get('presets');
            $preset = $presetStore->getPreset(
                $name,
                $this->getParameter('nanbando.application.version'),
                $this->getParameter('nanbando.application.options')
            );
        }

        return array_merge($preset, $backups);
    }
private function getBackups()
    {
        $backups = $this->getContainer()->getParameter('nanbando.backup');

        $preset = [];
        if ($name = $this->getParameter('nanbando.application.name')) {
            /** @var PresetStore $presetStore */
            $presetStore = $this->getContainer()->get('presets');
            $preset = $presetStore->getPreset(
                $name,
                $this->getParameter('nanbando.application.version'),
                $this->getParameter('nanbando.application.options')
            );
        }

        return array_merge($preset, $backups);
    }
private function getBackups ( ) { $ backups = $ this -> getContainer ( ) -> getParameter ( 'nanbando.backup' ) ; $ preset = [ ] ; if ( $ name = $ this -> getParameter ( 'nanbando.application.name' ) ) { /** @var PresetStore $presetStore */ $ presetStore = $ this -> getContainer ( ) -> get ( 'presets' ) ; $ preset = $ presetStore -> getPreset ( $ name , $ this -> getParameter ( 'nanbando.application.version' ) , $ this -> getParameter ( 'nanbando.application.options' ) ) ; } return array_merge ( $ preset , $ backups ) ; }
Returns backup configuration and merge it with preset if exists.

@return array
Returns backup configuration and merge it with preset if exists .