mirror of
https://github.com/friendica/friendica
synced 2025-05-18 21:44:11 +02:00
Add missing files
This commit is contained in:
parent
0c406a3696
commit
16fb80be1f
2 changed files with 98 additions and 0 deletions
42
src/Event/ConfigLoadedEvent.php
Normal file
42
src/Event/ConfigLoadedEvent.php
Normal file
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
|
||||
// Copyright (C) 2010-2024, the Friendica project
|
||||
// SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Friendica\Event;
|
||||
|
||||
use Friendica\Core\Config\Util\ConfigFileManager;
|
||||
|
||||
/**
|
||||
* Notify that the config was loaded
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
final class ConfigLoadedEvent implements NamedEvent
|
||||
{
|
||||
public const CONFIG_LOADED = 'friendica.config_loaded';
|
||||
|
||||
private string $name;
|
||||
|
||||
private ConfigFileManager $config;
|
||||
|
||||
public function __construct(string $name, ConfigFileManager $config)
|
||||
{
|
||||
$this->name = $name;
|
||||
$this->config = $config;
|
||||
}
|
||||
|
||||
public function getName(): string
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
public function getConfig(): ConfigFileManager
|
||||
{
|
||||
return $this->config;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue