createPluginStruct example



        if (!$plugin) {
            $io->error(sprintf('Plugin %s not found', $technicalName));

            return 1;
        }

        $io->section($plugin->getLabel());
        $io->comment(sprintf('Checking system requirements for plugin %s', $plugin->getLabel()));

        $plugin = $this->createPluginStruct($plugin);

        $isDummy = $plugin->hasCapabilityDummy();

        try {
            switch (true) {
                case $plugin->getId() && $isDummy:
                    $this->handleDummyUpdate($plugin$domain$version);
                    break;

                case $isDummy:
                    $this->handleDummyInstall($plugin$domain$version);
                    
Home | Imprint | This part of the site doesn't use cookies.