mirror of
https://github.com/AzuraCast/AzuraCast.git
synced 2024-06-14 13:16:37 +00:00
Revert readonly classes for phpcs.
This commit is contained in:
parent
2586277e9f
commit
dc9b189a3f
|
@ -12,12 +12,12 @@ use App\Service\Meilisearch;
|
||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Psr\Http\Message\ResponseInterface;
|
use Psr\Http\Message\ResponseInterface;
|
||||||
|
|
||||||
final readonly class ListAction
|
final class ListAction
|
||||||
{
|
{
|
||||||
public function __construct(
|
public function __construct(
|
||||||
private EntityManagerInterface $em,
|
private readonly EntityManagerInterface $em,
|
||||||
private Entity\ApiGenerator\SongApiGenerator $songApiGenerator,
|
private readonly Entity\ApiGenerator\SongApiGenerator $songApiGenerator,
|
||||||
private Meilisearch $meilisearch
|
private readonly Meilisearch $meilisearch
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -61,13 +61,13 @@ use Psr\Http\Message\ResponseInterface;
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
final readonly class RequestsController
|
final class RequestsController
|
||||||
{
|
{
|
||||||
public function __construct(
|
public function __construct(
|
||||||
private EntityManagerInterface $em,
|
private readonly EntityManagerInterface $em,
|
||||||
private Entity\Repository\StationRequestRepository $requestRepo,
|
private readonly Entity\Repository\StationRequestRepository $requestRepo,
|
||||||
private Entity\ApiGenerator\SongApiGenerator $songApiGenerator,
|
private readonly Entity\ApiGenerator\SongApiGenerator $songApiGenerator,
|
||||||
private Meilisearch $meilisearch
|
private readonly Meilisearch $meilisearch
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,13 +14,13 @@ use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Symfony\Component\Messenger\MessageBus;
|
use Symfony\Component\Messenger\MessageBus;
|
||||||
use Throwable;
|
use Throwable;
|
||||||
|
|
||||||
final readonly class BatchUtilities
|
final class BatchUtilities
|
||||||
{
|
{
|
||||||
public function __construct(
|
public function __construct(
|
||||||
private EntityManagerInterface $em,
|
private readonly EntityManagerInterface $em,
|
||||||
private Entity\Repository\StationMediaRepository $mediaRepo,
|
private readonly Entity\Repository\StationMediaRepository $mediaRepo,
|
||||||
private Entity\Repository\UnprocessableMediaRepository $unprocessableMediaRepo,
|
private readonly Entity\Repository\UnprocessableMediaRepository $unprocessableMediaRepo,
|
||||||
private MessageBus $messageBus,
|
private readonly MessageBus $messageBus,
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,14 +12,14 @@ use GuzzleHttp\Client as GuzzleClient;
|
||||||
use GuzzleHttp\Psr7\HttpFactory;
|
use GuzzleHttp\Psr7\HttpFactory;
|
||||||
use Meilisearch\Client;
|
use Meilisearch\Client;
|
||||||
|
|
||||||
final readonly class Meilisearch
|
final class Meilisearch
|
||||||
{
|
{
|
||||||
public const BATCH_SIZE = 100;
|
public const BATCH_SIZE = 100;
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
private Environment $environment,
|
private readonly Environment $environment,
|
||||||
private GuzzleClient $httpClient,
|
private readonly GuzzleClient $httpClient,
|
||||||
private FactoryInterface $factory
|
private readonly FactoryInterface $factory
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,14 +15,14 @@ use Meilisearch\Contracts\DocumentsQuery;
|
||||||
use Meilisearch\Endpoints\Indexes;
|
use Meilisearch\Endpoints\Indexes;
|
||||||
use Meilisearch\Exceptions\ApiException;
|
use Meilisearch\Exceptions\ApiException;
|
||||||
|
|
||||||
final readonly class Index
|
final class Index
|
||||||
{
|
{
|
||||||
public function __construct(
|
public function __construct(
|
||||||
private ReloadableEntityManagerInterface $em,
|
private readonly ReloadableEntityManagerInterface $em,
|
||||||
private CustomFieldRepository $customFieldRepo,
|
private readonly CustomFieldRepository $customFieldRepo,
|
||||||
private Environment $environment,
|
private readonly Environment $environment,
|
||||||
private StorageLocation $storageLocation,
|
private readonly StorageLocation $storageLocation,
|
||||||
private Indexes $indexClient,
|
private readonly Indexes $indexClient,
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,12 +13,12 @@ use App\Message\Meilisearch\AddMediaMessage;
|
||||||
use App\Message\Meilisearch\UpdatePlaylistsMessage;
|
use App\Message\Meilisearch\UpdatePlaylistsMessage;
|
||||||
use App\Service\Meilisearch;
|
use App\Service\Meilisearch;
|
||||||
|
|
||||||
final readonly class MessageHandler
|
final class MessageHandler
|
||||||
{
|
{
|
||||||
public function __construct(
|
public function __construct(
|
||||||
private Meilisearch $meilisearch,
|
private readonly Meilisearch $meilisearch,
|
||||||
private StorageLocationRepository $storageLocationRepo,
|
private readonly StorageLocationRepository $storageLocationRepo,
|
||||||
private StationRepository $stationRepo
|
private readonly StationRepository $stationRepo
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,14 +16,14 @@ use Pagerfanta\Adapter\AdapterInterface;
|
||||||
* @template T
|
* @template T
|
||||||
* @implements AdapterInterface<T>
|
* @implements AdapterInterface<T>
|
||||||
*/
|
*/
|
||||||
final readonly class PaginatorAdapter implements AdapterInterface
|
final class PaginatorAdapter implements AdapterInterface
|
||||||
{
|
{
|
||||||
public function __construct(
|
public function __construct(
|
||||||
private Indexes $indexClient,
|
private readonly Indexes $indexClient,
|
||||||
private Closure $hydrateCallback,
|
private readonly Closure $hydrateCallback,
|
||||||
private ?string $query,
|
private readonly ?string $query,
|
||||||
private array $searchParams = [],
|
private readonly array $searchParams = [],
|
||||||
private array $options = [],
|
private readonly array $options = [],
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user