Вход Регистрация
Файл: system/src/AdsFactory.php
Строк: 39
<?php

/**
 * This file is part of JohnCMS Content Management System.
 *
 * @copyright JohnCMS Community
 * @license   https://opensource.org/licenses/GPL-3.0 GPL-3.0
 * @link      https://johncms.com JohnCMS Project
 */

declare(strict_types=1);

namespace 
Johncms;

use 
JohncmsSystemLegacyTools;
use 
JohncmsSystemUsersUser;
use 
PDO;
use 
PsrContainerContainerInterface;

class 
AdsFactory
{
    public function 
__invoke(ContainerInterface $container): Ads
    
{
        return new 
Ads(
            
$container->get(PDO::class),
            
$container->get(Tools::class),
            
$container->get(User::class)
        );
    }
}
Онлайн: 1
Реклама