text stringlengths 9 39.2M | dir stringlengths 25 226 | lang stringclasses 163
values | created_date timestamp[s] | updated_date timestamp[s] | repo_name stringclasses 751
values | repo_full_name stringclasses 752
values | star int64 1.01k 183k | len_tokens int64 1 18.5M |
|---|---|---|---|---|---|---|---|---|
```php
<?php
declare(strict_types=1);
namespace App\Console\Command\Sync;
use App\Cache\NowPlayingCache;
use App\Container\EntityManagerAwareTrait;
use App\Container\SettingsAwareTrait;
use App\Lock\LockFactory;
use App\Utilities\Types;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console... | /content/code_sandbox/backend/src/Console/Command/Sync/NowPlayingCommand.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 1,076 |
```php
<?php
declare(strict_types=1);
namespace App\Console\Command\Sync;
use App\Container\ContainerAwareTrait;
use App\Container\LoggerAwareTrait;
use App\Sync\Task\AbstractTask;
use App\Utilities\Types;
use InvalidArgumentException;
use Monolog\LogRecord;
use Psr\Cache\CacheItemPoolInterface;
use ReflectionClass;... | /content/code_sandbox/backend/src/Console/Command/Sync/SingleTaskCommand.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 727 |
```php
<?php
declare(strict_types=1);
namespace App\Console\Command\Sync;
use App\Console\Command\CommandAbstract;
use App\Container\EnvironmentAwareTrait;
use App\Container\LoggerAwareTrait;
use Monolog\Handler\RotatingFileHandler;
abstract class AbstractSyncCommand extends CommandAbstract
{
use LoggerAwareTra... | /content/code_sandbox/backend/src/Console/Command/Sync/AbstractSyncCommand.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 152 |
```php
<?php
declare(strict_types=1);
namespace App\Console\Command\Sync;
use App\Container\EnvironmentAwareTrait;
use App\Container\LoggerAwareTrait;
use App\Lock\LockFactory;
use Symfony\Component\Console\Output\ConsoleOutputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Con... | /content/code_sandbox/backend/src/Console/Command/Sync/AbstractSyncRunnerCommand.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 650 |
```php
<?php
declare(strict_types=1);
namespace App\Console\Command\Sync;
use App\Container\SettingsAwareTrait;
use App\Event\GetSyncTasks;
use App\Lock\LockFactory;
use Carbon\CarbonImmutable;
use DateTimeZone;
use Psr\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\Console\Attribute\AsCommand;
use ... | /content/code_sandbox/backend/src/Console/Command/Sync/RunnerCommand.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 607 |
```php
<?php
declare(strict_types=1);
namespace App\Console\Command\Sync;
use App\Container\LoggerAwareTrait;
use App\Entity\Repository\StationRepository;
use App\Entity\Station;
use App\Sync\NowPlaying\Task\BuildQueueTask;
use App\Sync\NowPlaying\Task\NowPlayingTask;
use App\Utilities\Types;
use Monolog\LogRecord;
... | /content/code_sandbox/backend/src/Console/Command/Sync/NowPlayingPerStationCommand.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 583 |
```php
<?php
declare(strict_types=1);
namespace App\Console\Command\Internal;
use App\Console\Command\CommandAbstract;
use App\Container\EnvironmentAwareTrait;
use App\Utilities\Spinner;
use App\Utilities\Types;
use Doctrine\DBAL\Driver\PDO\MySQL\Driver;
use GuzzleHttp\Client;
use GuzzleHttp\RequestOptions;
use Inva... | /content/code_sandbox/backend/src/Console/Command/Internal/UptimeWaitCommand.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 954 |
```php
<?php
declare(strict_types=1);
namespace App\Console\Command\Internal;
use App\Console\Command\CommandAbstract;
use App\Container\EntityManagerAwareTrait;
use App\Entity\Station;
use App\Radio\Adapters;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Input\InputInterface;
use ... | /content/code_sandbox/backend/src/Console/Command/Internal/OnSslRenewal.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 295 |
```php
<?php
declare(strict_types=1);
namespace App\Console\Command\Internal;
use App\Console\Command\CommandAbstract;
use App\Service\AzuraCastCentral;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Sym... | /content/code_sandbox/backend/src/Console/Command/Internal/GetIpCommand.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 196 |
```php
<?php
declare(strict_types=1);
namespace App\Console\Command\Settings;
use App\Console\Command\CommandAbstract;
use App\Container\SettingsAwareTrait;
use App\Utilities;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\O... | /content/code_sandbox/backend/src/Console/Command/Settings/ListCommand.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 279 |
```php
<?php
declare(strict_types=1);
namespace App\Console\Command\Settings;
use App\Console\Command\CommandAbstract;
use App\Container\SettingsAwareTrait;
use App\Utilities\Types;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Inp... | /content/code_sandbox/backend/src/Console/Command/Settings/SetCommand.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 374 |
```php
<?php
declare(strict_types=1);
namespace App\Console\Command\Locale;
use App\Console\Command\CommandAbstract;
use App\Container\EnvironmentAwareTrait;
use App\Enums\SupportedLocales;
use App\Translations\JsonGenerator;
use Gettext\Generator\ArrayGenerator;
use Gettext\Loader\PoLoader;
use Symfony\Component\Co... | /content/code_sandbox/backend/src/Console/Command/Locale/ImportCommand.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 465 |
```php
<?php
declare(strict_types=1);
namespace App\Console\Command\Locale;
use App\Console\Command\CommandAbstract;
use App\Console\Command\Traits\PassThruProcess;
use App\Container\EnvironmentAwareTrait;
use App\Enums\SupportedLocales;
use Gettext\Generator\PoGenerator;
use Gettext\Loader\PoLoader;
use Gettext\Sca... | /content/code_sandbox/backend/src/Console/Command/Locale/GenerateCommand.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 736 |
```php
<?php
declare(strict_types=1);
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App\Lock;
use Psr\Log\LoggerAwareInter... | /content/code_sandbox/backend/src/Lock/RetryTillSaveStore.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 644 |
```php
<?php
declare(strict_types=1);
namespace App\Lock;
use Exception;
use Psr\Log\LoggerInterface;
use Symfony\Component\Lock\BlockingStoreInterface;
use Symfony\Component\Lock\LockFactory as SymfonyLockFactory;
use Symfony\Component\Lock\PersistingStoreInterface;
use Symfony\Component\Lock\SharedLockInterface;
... | /content/code_sandbox/backend/src/Lock/LockFactory.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 379 |
```php
<?php
declare(strict_types=1);
namespace App\Security;
use InvalidArgumentException;
use SensitiveParameter;
final class SplitToken
{
public const string SEPARATOR = ':';
public string $identifier;
public string $verifier;
public function hashVerifier(): string
{
return hash('s... | /content/code_sandbox/backend/src/Security/SplitToken.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 355 |
```php
<?php
declare(strict_types=1);
namespace App\Security;
use stdClass;
final class WebAuthnPasskey
{
public function __construct(
protected readonly string $id,
protected readonly string $publicKeyPem
) {
}
public function getId(): string
{
return $this->id;
}
... | /content/code_sandbox/backend/src/Security/WebAuthnPasskey.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 189 |
```php
<?php
/**
* A customized implementation of the Zend/Laminas Config XML reader.
*/
declare(strict_types=1);
namespace App\Xml;
use RuntimeException;
use XMLReader;
use const LIBXML_XINCLUDE;
/**
* XML config reader.
*/
final class Reader
{
/**
* Nodes to handle as plain text.
*/
privat... | /content/code_sandbox/backend/src/Xml/Reader.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 681 |
```php
<?php
/**
* Customized implementation of the Zend/Laminas Config XML Writer object.
*/
declare(strict_types=1);
namespace App\Xml;
use XMLWriter;
final class Writer
{
public static function toString(
array $config,
string $baseElement = 'xml-config',
bool $includeOpeningTag = t... | /content/code_sandbox/backend/src/Xml/Writer.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 607 |
```php
<?php
declare(strict_types=1);
namespace App\Session;
use App\Environment;
use App\Exception\Http\CsrfValidationException;
use App\Utilities\Types;
use Mezzio\Session\SessionInterface;
use Psr\Http\Message\ServerRequestInterface;
final class Csrf
{
public const int CODE_LENGTH = 10;
public const stri... | /content/code_sandbox/backend/src/Session/Csrf.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 737 |
```php
<?php
declare(strict_types=1);
namespace App\Session;
enum FlashLevels: string
{
case Success = 'success';
case Warning = 'warning';
case Error = 'danger';
case Info = 'info';
}
``` | /content/code_sandbox/backend/src/Session/FlashLevels.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 50 |
```php
<?php
declare(strict_types=1);
namespace App\Session;
use Mezzio\Session\SessionInterface;
/**
* Quick message queue service.
*/
final class Flash
{
public const string SESSION_KEY = 'flash';
private ?array $messages = null;
public function __construct(
private readonly SessionInterfa... | /content/code_sandbox/backend/src/Session/Flash.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 548 |
```php
<?php
declare(strict_types=1);
namespace App\Enums;
enum ReleaseChannel: string
{
case RollingRelease = 'latest';
case Stable = 'stable';
public static function default(): self
{
return self::RollingRelease;
}
}
``` | /content/code_sandbox/backend/src/Enums/ReleaseChannel.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 58 |
```php
<?php
declare(strict_types=1);
namespace App\Enums;
use App\Entity\Station;
use App\Exception\StationUnsupportedException;
enum StationFeatures
{
case CustomLiquidsoapConfig;
case Media;
case Sftp;
case MountPoints;
case RemoteRelays;
case HlsStreams;
case Streamers;
case Webh... | /content/code_sandbox/backend/src/Enums/StationFeatures.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 373 |
```php
<?php
declare(strict_types=1);
namespace App\Enums;
interface PermissionInterface
{
public function getValue(): string;
public function needsStation(): bool;
}
``` | /content/code_sandbox/backend/src/Enums/PermissionInterface.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 36 |
```php
<?php
declare(strict_types=1);
namespace App\Enums;
use App\Environment;
use App\Exception\Http\InvalidRequestAttribute;
use App\Http\ServerRequest;
use Gettext\Translator;
use Gettext\TranslatorFunctions;
use Locale;
enum SupportedLocales: string
{
case English = 'en_US.UTF-8';
case Czech = 'cs_CZ.U... | /content/code_sandbox/backend/src/Enums/SupportedLocales.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 1,293 |
```php
<?php
declare(strict_types=1);
namespace App\Enums;
enum StationPermissions: string implements PermissionInterface
{
case All = 'administer all';
case View = 'view station management';
case Reports = 'view station reports';
case Logs = 'view station logs';
case Profile = 'manage station pr... | /content/code_sandbox/backend/src/Enums/StationPermissions.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 348 |
```php
<?php
declare(strict_types=1);
namespace App\Enums;
enum SupportedThemes: string
{
case Browser = 'browser';
case Light = 'light';
case Dark = 'dark';
public static function default(): self
{
return self::Browser;
}
}
``` | /content/code_sandbox/backend/src/Enums/SupportedThemes.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 62 |
```php
<?php
declare(strict_types=1);
namespace App\Enums;
enum ApplicationEnvironment: string
{
case Production = 'production';
case Testing = 'testing';
case Development = 'development';
public function getName(): string
{
return ucfirst($this->value);
}
public static function... | /content/code_sandbox/backend/src/Enums/ApplicationEnvironment.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 132 |
```php
<?php
declare(strict_types=1);
namespace App\Enums;
enum GlobalPermissions: string implements PermissionInterface
{
case All = 'administer all';
case View = 'view administration';
case Logs = 'view system logs';
case Settings = 'administer settings';
case ApiKeys = 'administer api keys';
... | /content/code_sandbox/backend/src/Enums/GlobalPermissions.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 265 |
```php
<?php
declare(strict_types=1);
namespace App\Sync\Task;
use App\Entity\Enums\StorageLocationTypes;
use App\Entity\Repository\StationStreamerBroadcastRepository;
use App\Entity\Repository\StorageLocationRepository;
use App\Entity\StationStreamerBroadcast;
use App\Entity\StorageLocation;
use Symfony\Component\F... | /content/code_sandbox/backend/src/Sync/Task/MoveBroadcastsTask.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 766 |
```php
<?php
declare(strict_types=1);
namespace App\Sync\Task;
use App\Container\EnvironmentAwareTrait;
use App\Container\SettingsAwareTrait;
use App\Entity\Settings;
use App\Environment;
use App\Service\AzuraCastCentral;
use DateTimeInterface;
use GuzzleHttp\Exception\TransferException;
final class CheckUpdatesTas... | /content/code_sandbox/backend/src/Sync/Task/CheckUpdatesTask.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 482 |
```php
<?php
declare(strict_types=1);
namespace App\Sync\Task;
use App\Entity\Enums\PlaylistSources;
use App\Entity\Repository\StationPlaylistMediaRepository;
use App\Entity\Station;
use App\Entity\StationMedia;
use App\Entity\StationPlaylist;
use App\Flysystem\ExtendedFilesystemInterface;
use App\Flysystem\StationF... | /content/code_sandbox/backend/src/Sync/Task/CheckFolderPlaylistsTask.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 903 |
```php
<?php
declare(strict_types=1);
namespace App\Sync\Task;
use App\Radio\Adapters;
use App\Radio\AutoDJ\Scheduler;
use App\Radio\Backend\Liquidsoap;
use App\Radio\Enums\BackendAdapters;
final class EnforceBroadcastTimesTask extends AbstractTask
{
public function __construct(
private readonly Schedul... | /content/code_sandbox/backend/src/Sync/Task/EnforceBroadcastTimesTask.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 252 |
```php
<?php
declare(strict_types=1);
namespace App\Sync\Task;
use App\Entity\Enums\StorageLocationTypes;
use App\Entity\Repository\StorageLocationRepository;
use App\Entity\Station;
use App\Entity\StorageLocation;
use App\Flysystem\StationFilesystems;
use Exception;
use League\Flysystem\StorageAttributes;
use Symfo... | /content/code_sandbox/backend/src/Sync/Task/CleanupStorageTask.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 836 |
```php
<?php
declare(strict_types=1);
namespace App\Sync\Task;
use App\Entity\Enums\StorageLocationTypes;
use App\Entity\Repository\StationMediaRepository;
use App\Entity\Repository\StorageLocationRepository;
use App\Entity\Repository\UnprocessableMediaRepository;
use App\Entity\StationMedia;
use App\Entity\StorageL... | /content/code_sandbox/backend/src/Sync/Task/CheckMediaTask.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 2,256 |
```php
<?php
declare(strict_types=1);
namespace App\Sync\Task;
use App\Container\SettingsAwareTrait;
use App\Entity\Enums\StorageLocationTypes;
use App\Entity\Repository\StorageLocationRepository;
use App\Entity\Station;
use App\Entity\StorageLocation;
use App\Nginx\ConfigWriter;
use App\Nginx\Nginx;
use League\Flys... | /content/code_sandbox/backend/src/Sync/Task/RotateLogsTask.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 939 |
```php
<?php
declare(strict_types=1);
namespace App\Sync\Task;
use App\Entity\Repository\StationRequestRepository;
use App\Entity\Station;
use App\Entity\StationQueue;
use App\Entity\StationRequest;
use App\Event\Radio\AnnotateNextSong;
use App\Radio\Adapters;
use App\Radio\Backend\Liquidsoap;
use App\Radio\Enums\Li... | /content/code_sandbox/backend/src/Sync/Task/CheckRequestsTask.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 681 |
```php
<?php
declare(strict_types=1);
namespace App\Sync\Task;
use App\Entity\Station;
use App\Event\Radio\AnnotateNextSong;
use App\Radio\Adapters;
use App\Radio\AutoDJ\Queue;
use App\Radio\Backend\Liquidsoap;
use App\Radio\Enums\LiquidsoapQueues;
use Monolog\LogRecord;
use Psr\EventDispatcher\EventDispatcherInterf... | /content/code_sandbox/backend/src/Sync/Task/QueueInterruptingTracks.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 683 |
```php
<?php
declare(strict_types=1);
namespace App\Sync\Task;
use App\Entity\Settings;
use App\Environment;
use DateTimeInterface;
interface ScheduledTaskInterface
{
public const string SCHEDULE_EVERY_MINUTE = '* * * * *';
public const string SCHEDULE_EVERY_FIVE_MINUTES = '*/5 * * * *';
public static ... | /content/code_sandbox/backend/src/Sync/Task/ScheduledTaskInterface.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 201 |
```php
<?php
declare(strict_types=1);
namespace App\Sync\Task;
use App\Entity\Repository\UserLoginTokenRepository;
final class CleanupLoginTokensTask extends AbstractTask
{
public function __construct(
private readonly UserLoginTokenRepository $loginTokenRepo,
) {
}
public static function g... | /content/code_sandbox/backend/src/Sync/Task/CleanupLoginTokensTask.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 110 |
```php
<?php
declare(strict_types=1);
namespace App\Sync\Task;
use App\Container\SettingsAwareTrait;
use App\Entity\Analytics;
use App\Entity\Enums\AnalyticsIntervals;
use App\Entity\Enums\AnalyticsLevel;
use App\Entity\Repository\AnalyticsRepository;
use App\Entity\Repository\ListenerRepository;
use App\Entity\Repo... | /content/code_sandbox/backend/src/Sync/Task/RunAnalyticsTask.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 1,589 |
```php
<?php
declare(strict_types=1);
namespace App\Sync\Task;
final class ReactivateStreamerTask extends AbstractTask
{
public static function getSchedulePattern(): string
{
return self::SCHEDULE_EVERY_MINUTE;
}
public function run(bool $force = false): void
{
$streamers = $this... | /content/code_sandbox/backend/src/Sync/Task/ReactivateStreamerTask.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 184 |
```php
<?php
declare(strict_types=1);
namespace App\Sync\Task;
use App\Container\SettingsAwareTrait;
use App\Entity\Repository\ListenerRepository;
use App\Entity\Repository\SongHistoryRepository;
use App\Entity\Repository\StationQueueRepository;
use App\Entity\StationQueue;
final class CleanupHistoryTask extends Ab... | /content/code_sandbox/backend/src/Sync/Task/CleanupHistoryTask.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 249 |
```php
<?php
declare(strict_types=1);
namespace App\Sync\Task;
use App\Container\SettingsAwareTrait;
use App\Service\IpGeolocator\GeoLite;
use Exception;
use GuzzleHttp\Client;
use GuzzleHttp\RequestOptions;
use RuntimeException;
use Symfony\Component\Process\Process;
final class UpdateGeoLiteTask extends AbstractT... | /content/code_sandbox/backend/src/Sync/Task/UpdateGeoLiteTask.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 612 |
```php
<?php
declare(strict_types=1);
namespace App\Sync\Task;
use App\Doctrine\ReadWriteBatchIteratorAggregate;
use App\Entity\Repository\StorageLocationRepository;
use App\Entity\StorageLocation;
use App\Radio\Quota;
use Brick\Math\BigInteger;
use Exception;
use League\Flysystem\FileAttributes;
use League\Flysyste... | /content/code_sandbox/backend/src/Sync/Task/UpdateStorageLocationSizesTask.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 478 |
```php
<?php
declare(strict_types=1);
namespace App\Sync\Task;
use App\Entity\Enums\PodcastSources;
use App\Entity\Podcast;
use App\Entity\PodcastEpisode;
use App\Entity\Repository\PodcastEpisodeRepository;
use App\Entity\Station;
use App\Entity\StationMedia;
use App\Flysystem\StationFilesystems;
use Carbon\CarbonIm... | /content/code_sandbox/backend/src/Sync/Task/CheckPodcastPlaylistsTask.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 1,134 |
```php
<?php
declare(strict_types=1);
namespace App\Sync\Task;
use App\Service\Acme;
use Exception;
final class RenewAcmeCertTask extends AbstractTask
{
public function __construct(
private readonly Acme $acme
) {
}
public static function getSchedulePattern(): string
{
return '3... | /content/code_sandbox/backend/src/Sync/Task/RenewAcmeCertTask.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 163 |
```php
<?php
declare(strict_types=1);
namespace App\Sync\Task;
use App\Container\EntityManagerAwareTrait;
use App\Container\LoggerAwareTrait;
use App\Doctrine\ReadWriteBatchIteratorAggregate;
use App\Entity\Enums\StorageLocationTypes;
use App\Entity\Settings;
use App\Entity\Station;
use App\Entity\StorageLocation;
u... | /content/code_sandbox/backend/src/Sync/Task/AbstractTask.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 550 |
```php
<?php
declare(strict_types=1);
namespace App\Sync\Task;
use App\Console\Application;
use App\Container\SettingsAwareTrait;
use App\Entity\StationSchedule;
use App\Message;
use Carbon\CarbonImmutable;
use Carbon\CarbonInterface;
use Symfony\Component\Messenger\MessageBus;
final class RunBackupTask extends Abs... | /content/code_sandbox/backend/src/Sync/Task/RunBackupTask.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 965 |
```php
<?php
declare(strict_types=1);
namespace App\Sync\Task;
final class CleanupRelaysTask extends AbstractTask
{
public static function getSchedulePattern(): string
{
return self::SCHEDULE_EVERY_MINUTE;
}
public function run(bool $force = false): void
{
// Relays should update... | /content/code_sandbox/backend/src/Sync/Task/CleanupRelaysTask.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 146 |
```php
<?php
declare(strict_types=1);
namespace App\Sync\NowPlaying\Task;
use App\Entity\Station;
use App\Radio\AutoDJ;
final class BuildQueueTask implements NowPlayingTaskInterface
{
public function __construct(
private readonly AutoDJ\Queue $queue
) {
}
public function run(Station $statio... | /content/code_sandbox/backend/src/Sync/NowPlaying/Task/BuildQueueTask.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 93 |
```php
<?php
declare(strict_types=1);
namespace App\Sync\NowPlaying\Task;
use App\Entity\Station;
interface NowPlayingTaskInterface
{
public function run(Station $station): void;
}
``` | /content/code_sandbox/backend/src/Sync/NowPlaying/Task/NowPlayingTaskInterface.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 45 |
```php
<?php
declare(strict_types=1);
namespace App\Sync\NowPlaying\Task;
use App\Cache\NowPlayingCache;
use App\Container\EntityManagerAwareTrait;
use App\Container\LoggerAwareTrait;
use App\Container\SettingsAwareTrait;
use App\Entity\Api\NowPlaying\NowPlaying;
use App\Entity\ApiGenerator\NowPlayingApiGenerator;
u... | /content/code_sandbox/backend/src/Sync/NowPlaying/Task/NowPlayingTask.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 1,656 |
```php
<?php
declare(strict_types=1);
namespace App\Exception;
use App\Exception;
use Monolog\Level;
use Throwable;
final class CannotProcessMediaException extends Exception
{
private ?string $path = null;
public function __construct(
string $message = 'Cannot process media file.',
int $cod... | /content/code_sandbox/backend/src/Exception/CannotProcessMediaException.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 248 |
```php
<?php
declare(strict_types=1);
namespace App\Exception;
use App\Exception;
use App\Exception\Supervisor\AlreadyRunningException;
use App\Exception\Supervisor\BadNameException;
use App\Exception\Supervisor\NotRunningException;
use Supervisor\Exception\Fault\AlreadyStartedException;
use Supervisor\Exception\Fau... | /content/code_sandbox/backend/src/Exception/SupervisorException.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 495 |
```php
<?php
declare(strict_types=1);
namespace App\Exception;
use App\Exception;
use Monolog\Level;
use Symfony\Component\Validator\ConstraintViolationListInterface;
use Throwable;
final class ValidationException extends Exception
{
private ConstraintViolationListInterface $detailedErrors;
public function... | /content/code_sandbox/backend/src/Exception/ValidationException.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 232 |
```php
<?php
declare(strict_types=1);
namespace App\Exception;
use App\Exception;
use Monolog\Level;
use Throwable;
final class StorageLocationFullException extends Exception
{
public function __construct(
string $message = 'Storage location is full.',
int $code = 500,
Throwable $previou... | /content/code_sandbox/backend/src/Exception/StorageLocationFullException.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 102 |
```php
<?php
declare(strict_types=1);
namespace App\Exception;
use Psr\Http\Message\ServerRequestInterface;
use Slim\Exception\HttpException;
use Throwable;
final class WrappedException extends HttpException
{
public function __construct(
ServerRequestInterface $request,
?Throwable $previous
... | /content/code_sandbox/backend/src/Exception/WrappedException.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 84 |
```php
<?php
declare(strict_types=1);
namespace App\Exception;
use App\Exception;
use Monolog\Level;
use Throwable;
final class StationUnsupportedException extends Exception
{
public function __construct(
string $message = 'This feature is not currently supported on this station.',
int $code = 5... | /content/code_sandbox/backend/src/Exception/StationUnsupportedException.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 197 |
```php
<?php
declare(strict_types=1);
namespace App\Exception;
use App\Exception;
use Monolog\Level;
use Throwable;
final class NotFoundException extends Exception
{
public function __construct(
string $message = 'Record not found.',
int $code = 404,
Throwable $previous = null,
L... | /content/code_sandbox/backend/src/Exception/NotFoundException.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 183 |
```php
<?php
declare(strict_types=1);
namespace App\Exception\Supervisor;
use App\Exception\SupervisorException;
use Monolog\Level;
use Throwable;
final class NotRunningException extends SupervisorException
{
public function __construct(
string $message = 'Process was not running yet.',
int $cod... | /content/code_sandbox/backend/src/Exception/Supervisor/NotRunningException.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 110 |
```php
<?php
declare(strict_types=1);
namespace App\Exception\Supervisor;
use App\Exception\SupervisorException;
final class BadNameException extends SupervisorException
{
}
``` | /content/code_sandbox/backend/src/Exception/Supervisor/BadNameException.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 36 |
```php
<?php
declare(strict_types=1);
namespace App\Exception\Supervisor;
use App\Exception\SupervisorException;
use Monolog\Level;
use Throwable;
final class AlreadyRunningException extends SupervisorException
{
public function __construct(
string $message = 'Process was already running.',
int ... | /content/code_sandbox/backend/src/Exception/Supervisor/AlreadyRunningException.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 109 |
```php
<?php
declare(strict_types=1);
namespace App\Exception\Http;
use Psr\Http\Message\ServerRequestInterface;
use Slim\Exception\HttpException;
use Throwable;
final class CannotCompleteActionException extends HttpException
{
public function __construct(
ServerRequestInterface $request,
string... | /content/code_sandbox/backend/src/Exception/Http/CannotCompleteActionException.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 159 |
```php
<?php
declare(strict_types=1);
namespace App\Exception\Http;
use Psr\Http\Message\ServerRequestInterface;
use Slim\Exception\HttpException;
use Throwable;
final class CsrfValidationException extends HttpException
{
public function __construct(
ServerRequestInterface $request,
string $mess... | /content/code_sandbox/backend/src/Exception/Http/CsrfValidationException.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 106 |
```php
<?php
declare(strict_types=1);
namespace App\Exception\Http;
use Psr\Http\Message\ServerRequestInterface;
use Slim\Exception\HttpException;
use Throwable;
final class InvalidRequestAttribute extends HttpException
{
public function __construct(
ServerRequestInterface $request,
string $mess... | /content/code_sandbox/backend/src/Exception/Http/InvalidRequestAttribute.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 104 |
```php
<?php
declare(strict_types=1);
namespace App\Exception\Http;
use Psr\Http\Message\ServerRequestInterface;
use Slim\Exception\HttpException;
use Throwable;
final class FlowUploadException extends HttpException
{
public function __construct(
ServerRequestInterface $request,
string $message ... | /content/code_sandbox/backend/src/Exception/Http/FlowUploadException.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 105 |
```php
<?php
declare(strict_types=1);
namespace App\Exception\Http;
use Psr\Http\Message\ServerRequestInterface;
use Slim\Exception\HttpException;
use Throwable;
final class RateLimitExceededException extends HttpException
{
public function __construct(
ServerRequestInterface $request,
string $m... | /content/code_sandbox/backend/src/Exception/Http/RateLimitExceededException.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 112 |
```php
<?php
declare(strict_types=1);
namespace App\Exception\Http;
use Psr\Http\Message\ServerRequestInterface;
use Slim\Exception\HttpException;
use Throwable;
final class NotLoggedInException extends HttpException
{
public function __construct(
ServerRequestInterface $request,
string $message... | /content/code_sandbox/backend/src/Exception/Http/NotLoggedInException.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 144 |
```php
<?php
declare(strict_types=1);
namespace App\Exception\Http;
use Psr\Http\Message\ServerRequestInterface;
use Slim\Exception\HttpException;
use Throwable;
final class PermissionDeniedException extends HttpException
{
public function __construct(
ServerRequestInterface $request,
string $me... | /content/code_sandbox/backend/src/Exception/Http/PermissionDeniedException.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 146 |
```php
<?php
declare(strict_types=1);
namespace App\Controller;
use App\Http\Response;
use App\Http\ServerRequest;
use Psr\Http\Message\ResponseInterface;
interface SingleActionInterface
{
/**
* @param ServerRequest $request
* @param Response $response
* @param array<string, string> $params
... | /content/code_sandbox/backend/src/Controller/SingleActionInterface.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 107 |
```php
<?php
declare(strict_types=1);
namespace App\Controller;
use App\Http\Response;
use App\Http\ServerRequest;
use Psr\Http\Message\ResponseInterface;
final class AdminAction implements SingleActionInterface
{
public function __invoke(
ServerRequest $request,
Response $response,
arra... | /content/code_sandbox/backend/src/Controller/AdminAction.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 134 |
```php
<?php
declare(strict_types=1);
namespace App\Controller;
use App\Container\EntityManagerAwareTrait;
use App\Container\SettingsAwareTrait;
use App\Enums\StationFeatures;
use App\Http\Response;
use App\Http\ServerRequest;
use Psr\Http\Message\ResponseInterface;
final class StationsAction implements SingleActio... | /content/code_sandbox/backend/src/Controller/StationsAction.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 620 |
```php
<?php
declare(strict_types=1);
namespace App\Controller\Traits;
use App\Container\SettingsAwareTrait;
use App\Http\ServerRequest;
use App\Utilities\Types;
use InvalidArgumentException;
use lbuchs\WebAuthn\Binary\ByteBuffer;
use lbuchs\WebAuthn\WebAuthn;
trait UsesWebAuthnTrait
{
use SettingsAwareTrait;
... | /content/code_sandbox/backend/src/Controller/Traits/UsesWebAuthnTrait.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 365 |
```php
<?php
declare(strict_types=1);
namespace App\Controller\Api;
use App\Console\Command\GenerateApiDocsCommand;
use App\Controller\SingleActionInterface;
use App\Http\Response;
use App\Http\ServerRequest;
use App\Version;
use Psr\Http\Message\ResponseInterface;
final class OpenApiAction implements SingleActionI... | /content/code_sandbox/backend/src/Controller/Api/OpenApiAction.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 213 |
```php
<?php
declare(strict_types=1);
namespace App\Controller\Api;
use App\Entity\Api\SystemStatus;
use App\Entity\Api\Time;
use App\Http\Response;
use App\Http\ServerRequest;
use OpenApi\Attributes as OA;
use Psr\Http\Message\ResponseInterface;
final class IndexController
{
#[OA\Get(
path: '/status',
... | /content/code_sandbox/backend/src/Controller/Api/IndexController.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 322 |
```php
<?php
declare(strict_types=1);
namespace App\Controller\Api;
use App\Cache\NowPlayingCache;
use App\Controller\SingleActionInterface;
use App\Entity\Api\Error;
use App\Entity\Api\NowPlaying\NowPlaying;
use App\Http\Response;
use App\Http\ServerRequest;
use Psr\Http\Message\ResponseInterface;
final class NowP... | /content/code_sandbox/backend/src/Controller/Api/NowPlayingArtAction.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 255 |
```php
<?php
declare(strict_types=1);
namespace App\Controller\Api;
use App\Container\EntityManagerAwareTrait;
use App\Entity\Api\Error;
use App\Entity\Api\Status;
use App\Entity\Interfaces\IdentifiableEntityInterface;
use App\Exception\ValidationException;
use App\Http\Response;
use App\Http\ServerRequest;
use App\... | /content/code_sandbox/backend/src/Controller/Api/AbstractApiCrudController.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 1,715 |
```php
<?php
declare(strict_types=1);
namespace App\Controller\Api;
use App\Container\EntityManagerAwareTrait;
use App\Container\EnvironmentAwareTrait;
use App\Controller\SingleActionInterface;
use App\Http\Response;
use App\Http\ServerRequest;
use App\Service\MemoryStats;
use Brick\Math\BigDecimal;
use Brick\Math\B... | /content/code_sandbox/backend/src/Controller/Api/PrometheusAction.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 1,825 |
```php
<?php
declare(strict_types=1);
namespace App\Controller\Api;
use App\Cache\NowPlayingCache;
use App\Controller\SingleActionInterface;
use App\Entity\Api\Error;
use App\Entity\Api\NowPlaying\NowPlaying;
use App\Exception\Http\InvalidRequestAttribute;
use App\Http\Response;
use App\Http\ServerRequest;
use App\O... | /content/code_sandbox/backend/src/Controller/Api/NowPlayingAction.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 619 |
```php
<?php
declare(strict_types=1);
namespace App\Controller\Api\Traits;
use App\Exception\NotFoundException;
use App\Http\Response;
use App\Http\ServerRequest;
use Psr\Http\Message\ResponseInterface;
use RuntimeException;
trait HasLogViewer
{
public static int $maximum_log_size = 1048576;
protected func... | /content/code_sandbox/backend/src/Controller/Api/Traits/HasLogViewer.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 669 |
```php
<?php
declare(strict_types=1);
namespace App\Controller\Api\Traits;
use App\Http\ServerRequest;
use App\Utilities\Types;
use Doctrine\Common\Collections\Order;
use Doctrine\ORM\QueryBuilder;
use Symfony\Component\PropertyAccess\Exception\UnexpectedTypeException;
use Symfony\Component\PropertyAccess\PropertyAc... | /content/code_sandbox/backend/src/Controller/Api/Traits/CanSortResults.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 752 |
```php
<?php
declare(strict_types=1);
namespace App\Controller\Api\Traits;
use App\Entity\StationSchedule;
use App\Radio\AutoDJ\Scheduler;
use App\Utilities\DateRange;
use Carbon\CarbonInterface;
trait HasScheduleDisplay
{
use AcceptsDateRange;
protected function getEvents(
DateRange $dateRange,
... | /content/code_sandbox/backend/src/Controller/Api/Traits/HasScheduleDisplay.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 386 |
```php
<?php
declare(strict_types=1);
namespace App\Controller\Api\Traits;
use Symfony\Component\PropertyAccess\PropertyAccess;
use Symfony\Component\PropertyAccess\PropertyAccessorInterface;
trait UsesPropertyAccessor
{
protected static ?PropertyAccessorInterface $propertyAccessor = null;
protected static... | /content/code_sandbox/backend/src/Controller/Api/Traits/UsesPropertyAccessor.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 134 |
```php
<?php
declare(strict_types=1);
namespace App\Controller\Api\Traits;
use App\Container\EntityManagerAwareTrait;
use App\Entity\Station;
use App\Entity\StationPlaylist;
trait HasMediaSearch
{
use EntityManagerAwareTrait;
private function parseSearchQuery(
Station $station,
string $quer... | /content/code_sandbox/backend/src/Controller/Api/Traits/HasMediaSearch.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 454 |
```php
<?php
declare(strict_types=1);
namespace App\Controller\Api\Traits;
use App\Http\ServerRequest;
use App\Utilities\Types;
use Doctrine\ORM\QueryBuilder;
trait CanSearchResults
{
use UsesPropertyAccessor;
/**
* @param string[] $fieldsToSearch
*/
protected function searchQueryBuilder(
... | /content/code_sandbox/backend/src/Controller/Api/Traits/CanSearchResults.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 458 |
```php
<?php
declare(strict_types=1);
namespace App\Controller\Api\Traits;
use App\Http\ServerRequest;
use App\Utilities\DateRange;
use App\Utilities\Types;
use Carbon\CarbonImmutable;
use DateTimeZone;
trait AcceptsDateRange
{
protected function getDateRange(
ServerRequest $request,
?DateTimeZo... | /content/code_sandbox/backend/src/Controller/Api/Traits/AcceptsDateRange.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 434 |
```php
<?php
declare(strict_types=1);
namespace App\Controller\Api\Admin;
use App\Container\EntityManagerAwareTrait;
use App\Controller\SingleActionInterface;
use App\Entity\Relay;
use App\Http\Response;
use App\Http\ServerRequest;
use App\Paginator;
use Psr\Http\Message\ResponseInterface;
final class RelaysAction ... | /content/code_sandbox/backend/src/Controller/Api/Admin/RelaysAction.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 165 |
```php
<?php
declare(strict_types=1);
namespace App\Controller\Api\Admin;
use App\Container\EntityManagerAwareTrait;
use App\Controller\Api\Traits\AcceptsDateRange;
use App\Entity\AuditLog;
use App\Http\Response;
use App\Http\ServerRequest;
use App\Paginator;
use App\Utilities\Types;
use Psr\Http\Message\ResponseInt... | /content/code_sandbox/backend/src/Controller/Api/Admin/AuditLogAction.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 600 |
```php
<?php
declare(strict_types=1);
namespace App\Controller\Api\Admin;
use App\Acl;
use App\Controller\Api\AbstractApiCrudController;
use App\Controller\Api\Traits\CanSearchResults;
use App\Controller\Api\Traits\CanSortResults;
use App\Entity\Repository\RolePermissionRepository;
use App\Entity\Role;
use App\Entit... | /content/code_sandbox/backend/src/Controller/Api/Admin/RolesController.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 2,005 |
```php
<?php
declare(strict_types=1);
namespace App\Controller\Api\Admin;
use App\Controller\Api\AbstractApiCrudController;
use App\Entity\CustomField;
use App\OpenApi;
use OpenApi\Attributes as OA;
/** @extends AbstractApiCrudController<CustomField> */
#[
OA\Get(
path: '/admin/custom_fields',
o... | /content/code_sandbox/backend/src/Controller/Api/Admin/CustomFieldsController.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 1,032 |
```php
<?php
declare(strict_types=1);
namespace App\Controller\Api\Admin;
use App\Entity\Api\Status;
use App\Enums\GlobalPermissions;
use App\Http\Response;
use App\Http\ServerRequest;
use App\Service\ServiceControl;
use Psr\Http\Message\ResponseInterface;
final class ServiceControlController
{
public function ... | /content/code_sandbox/backend/src/Controller/Api/Admin/ServiceControlController.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 309 |
```php
<?php
declare(strict_types=1);
namespace App\Controller\Api\Admin;
use App\Controller\SingleActionInterface;
use App\Entity\Api\Error;
use App\Entity\Api\Status;
use App\Exception\ValidationException;
use App\Http\Response;
use App\Http\ServerRequest;
use App\Service\Mail;
use App\Utilities\Types;
use Psr\Htt... | /content/code_sandbox/backend/src/Controller/Api/Admin/SendTestMessageAction.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 399 |
```php
<?php
declare(strict_types=1);
namespace App\Controller\Api\Admin;
use App\Container\SettingsAwareTrait;
use App\Controller\Api\AbstractApiCrudController;
use App\Entity\Api\Status;
use App\Entity\Settings;
use App\Http\Response;
use App\Http\ServerRequest;
use App\OpenApi;
use OpenApi\Attributes as OA;
use P... | /content/code_sandbox/backend/src/Controller/Api/Admin/SettingsController.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 743 |
```php
<?php
declare(strict_types=1);
namespace App\Controller\Api\Admin;
use App\Container\EnvironmentAwareTrait;
use App\Controller\Api\Traits\HasLogViewer;
use App\Exception;
use App\Http\Response;
use App\Http\ServerRequest;
use App\Service\ServiceControl;
use Psr\Http\Message\ResponseInterface;
final class Log... | /content/code_sandbox/backend/src/Controller/Api/Admin/LogsAction.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 974 |
```php
<?php
declare(strict_types=1);
namespace App\Controller\Api\Admin;
use App\Controller\Api\AbstractApiCrudController;
use App\Controller\Api\Traits\CanSearchResults;
use App\Controller\Api\Traits\CanSortResults;
use App\Controller\Frontend\Account\MasqueradeAction;
use App\Entity\Api\Error;
use App\Entity\Api\... | /content/code_sandbox/backend/src/Controller/Api/Admin/UsersController.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 1,854 |
```php
<?php
declare(strict_types=1);
namespace App\Controller\Api\Admin;
use App\Acl;
use App\Controller\SingleActionInterface;
use App\Http\Response;
use App\Http\ServerRequest;
use App\OpenApi;
use OpenApi\Attributes as OA;
use Psr\Http\Message\ResponseInterface;
#[
OA\Get(
path: '/admin/permissions'... | /content/code_sandbox/backend/src/Controller/Api/Admin/PermissionsAction.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 345 |
```php
<?php
declare(strict_types=1);
namespace App\Controller\Api\Admin;
use App\Controller\Api\AbstractApiCrudController;
use App\Entity\Api\Admin\StorageLocation as ApiStorageLocation;
use App\Entity\Repository\StorageLocationRepository;
use App\Entity\StorageLocation;
use App\Http\Response;
use App\Http\ServerRe... | /content/code_sandbox/backend/src/Controller/Api/Admin/StorageLocationsController.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 1,692 |
```php
<?php
declare(strict_types=1);
namespace App\Controller\Api\Admin;
use App\Container\EnvironmentAwareTrait;
use App\Controller\SingleActionInterface;
use App\Http\Response;
use App\Http\ServerRequest;
use App\OpenApi;
use App\Radio\Quota;
use App\Service\CpuStats;
use App\Service\MemoryStats;
use App\Service\... | /content/code_sandbox/backend/src/Controller/Api/Admin/ServerStatsAction.php | php | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 1,729 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.