getExpiredLicenses example

'success' => true,
            'data' => array_values($updates->getPlugins()),
            'loginRecommended' => empty($secret) && $updates->isGtcAcceptanceRequired(),
        ]);
    }

    /** * @return void */
    public function expiredListingAction()
    {
        $pluginInformationStructs = $this->container->get(PluginLicenceService::class)->getExpiredLicenses();
        $expiredPlugins = [];
        foreach ($pluginInformationStructs as $pluginInformationStruct) {
            $expiredPlugins[] = $pluginInformationStruct->getTechnicalName();
        }

        $installDates = $this->get(Connection::class)->createQueryBuilder()->from('s_core_plugins', 'plugins')
            ->addSelect('plugins.name, plugins.installation_date, plugins.capability_secure_uninstall')
            ->andWhere('name IN (:names)')
            ->setParameter('names', $expiredPlugins, Connection::PARAM_STR_ARRAY)
            ->execute()
            ->fetchAll(PDO::FETCH_ASSOC | PDO::FETCH_GROUP | PDO::FETCH_UNIQUE);

        
Home | Imprint | This part of the site doesn't use cookies.