mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-30 03:23:48 +00:00
php cs fixes after updating php cs fixer
This commit is contained in:
@@ -13,4 +13,6 @@ namespace Chill\WopiBundle;
|
||||
|
||||
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
||||
|
||||
final class ChillWopiBundle extends Bundle {}
|
||||
final class ChillWopiBundle extends Bundle
|
||||
{
|
||||
}
|
||||
|
@@ -37,7 +37,9 @@ use Twig\Environment;
|
||||
*/
|
||||
final readonly class Editor
|
||||
{
|
||||
public function __construct(private ConfigurationInterface $wopiConfiguration, private DiscoveryInterface $wopiDiscovery, private DocumentManagerInterface $documentManager, private Environment $engine, private JWTTokenManagerInterface $JWTTokenManager, private NormalizerInterface $normalizer, private ResponderInterface $responder, private Security $security, private Psr17Interface $psr17, private RouterInterface $router) {}
|
||||
public function __construct(private ConfigurationInterface $wopiConfiguration, private DiscoveryInterface $wopiDiscovery, private DocumentManagerInterface $documentManager, private Environment $engine, private JWTTokenManagerInterface $JWTTokenManager, private NormalizerInterface $normalizer, private ResponderInterface $responder, private Security $security, private Psr17Interface $psr17, private RouterInterface $router)
|
||||
{
|
||||
}
|
||||
|
||||
public function __invoke(string $fileId, Request $request): Response
|
||||
{
|
||||
|
@@ -19,5 +19,5 @@ return static function (RoutingConfigurator $routes) {
|
||||
|
||||
$routes
|
||||
->add('chill_wopi_object_convert', '/convert/{uuid}')
|
||||
->controller(\Chill\WopiBundle\Controller\Convert::class);
|
||||
->controller(Chill\WopiBundle\Controller\Convert::class);
|
||||
};
|
||||
|
@@ -22,7 +22,9 @@ use Twig\Environment;
|
||||
|
||||
final readonly class Responder implements ResponderInterface
|
||||
{
|
||||
public function __construct(private Environment $twig, private UrlGeneratorInterface $urlGenerator, private SerializerInterface $serializer) {}
|
||||
public function __construct(private Environment $twig, private UrlGeneratorInterface $urlGenerator, private SerializerInterface $serializer)
|
||||
{
|
||||
}
|
||||
|
||||
public function file(
|
||||
$file,
|
||||
|
@@ -19,7 +19,9 @@ use Symfony\Component\Security\Core\Security;
|
||||
|
||||
class AuthorizationManager implements \ChampsLibres\WopiBundle\Contracts\AuthorizationManagerInterface
|
||||
{
|
||||
public function __construct(private readonly JWTTokenManagerInterface $tokenManager, private readonly Security $security) {}
|
||||
public function __construct(private readonly JWTTokenManagerInterface $tokenManager, private readonly Security $security)
|
||||
{
|
||||
}
|
||||
|
||||
public function isRestrictedWebViewOnly(string $accessToken, Document $document, RequestInterface $request): bool
|
||||
{
|
||||
|
@@ -28,7 +28,8 @@ class ChillDocumentLockManager implements DocumentLockManagerInterface
|
||||
public function __construct(
|
||||
private readonly ChillRedis $redis,
|
||||
private readonly int $ttlAfterDeleteSeconds = self::LOCK_GRACEFUL_DURATION_TIME
|
||||
) {}
|
||||
) {
|
||||
}
|
||||
|
||||
public function deleteLock(Document $document, RequestInterface $request): bool
|
||||
{
|
||||
|
@@ -17,7 +17,9 @@ use Psr\Http\Message\ResponseInterface;
|
||||
|
||||
final readonly class ChillWopi implements WopiInterface
|
||||
{
|
||||
public function __construct(private WopiInterface $wopi) {}
|
||||
public function __construct(private WopiInterface $wopi)
|
||||
{
|
||||
}
|
||||
|
||||
public function checkFileInfo(
|
||||
string $fileId,
|
||||
|
@@ -17,7 +17,9 @@ use Symfony\Component\Security\Core\Security;
|
||||
|
||||
class UserManager implements \ChampsLibres\WopiBundle\Contracts\UserManagerInterface
|
||||
{
|
||||
public function __construct(private readonly Security $security) {}
|
||||
public function __construct(private readonly Security $security)
|
||||
{
|
||||
}
|
||||
|
||||
public function getUserFriendlyName(string $accessToken, string $fileId, RequestInterface $request): ?string
|
||||
{
|
||||
|
Reference in New Issue
Block a user