HEX
Server: Apache/2.4.65 (Debian)
System: Linux 88f31f35b0b8 6.1.0-38-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.147-1 (2025-08-02) x86_64
User: www-data (33)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/wp-rss-aggregator/v4/src/Modules/CronsToolModule.php
<?php

namespace RebelCode\Wpra\Core\Modules;

use Psr\Container\ContainerInterface;
use RebelCode\Wpra\Core\Templates\NullTemplate;

/**
 * The module that adds the "Crons" tool to WP RSS Aggregator.
 *
 * @since [*next-version*]
 */
class CronsToolModule implements ModuleInterface
{
    /**
     * @inheritdoc
     *
     * @since [*next-version*]
     */
    public function getFactories()
    {
        return [
            /*
             * Information about the "Crons" tool.
             *
             * @since [*next-version*]
             */
            'wpra/admin/tools/crons/info' => function (ContainerInterface $c) {
                return [
                    'name' => __('Crons', 'wprss'),
                    'template' => $c->has('wpra/twig/collection')
                        ? $c->get('wpra/twig/collection')['admin/tools/crons.twig']
                        : new NullTemplate(),
                ];
            },
        ];
    }

    /**
     * @inheritdoc
     *
     * @since [*next-version*]
     */
    public function getExtensions()
    {
        return [
            /*
             * Registers the "Crons" tool.
             *
             * @since [*next-version*]
             */
            'wpra/admin/tools' => function (ContainerInterface $c, $tools) {
                return $tools + ['crons' => $c->get('wpra/admin/tools/crons/info')];
            },
        ];
    }

    /**
     * @inheritdoc
     *
     * @since [*next-version*]
     */
    public function run(ContainerInterface $c)
    {
    }
}