Questions tagged [thephpleague]

64 questions
1
vote
1 answer

league/flysystem-aws-s3-v3 get custom metada

I'm messing with the flysystem library (it is amazing, anyway!) I created some files on the remote s3 bucket defining some custom metadata $conf = [ 'visibility' => 'public', 'Metadata' => [ 'Content-type' => 'image/jpeg', 'Generated' =>…
daniele m
  • 63
  • 6
1
vote
1 answer

How to skip duplicate (by header) CSV columns in League Reader?

I'm using league/csv:^9.6 (9.6.2). I need to parse CSV files that have lots of columns (150+), and extract small amount of them (8). Those columns are not fixed in terms of offset (position unknown), but they have stable unique header – so i want to…
trogwar
  • 216
  • 1
  • 11
  • 26
1
vote
2 answers

Laravel can't see existing vendor class after update

I am no longer able to send email from my Laravel app once I updated to v6.10, 6.11. I have not changed any code, nor have I required or removed anything new from composer recently. This appears to be potentially something with the new build of…
Watercayman
  • 7,970
  • 10
  • 31
  • 49
1
vote
1 answer

Correct method of DI with regards to route.thephpleague.com

I received feedback on code of mine that said I was using Dependency Injection incorrectly: You are using the DI, but you are not utilizing it anywhere except for Request and Response. The following 10 lines will always instantiate the…
Michael Millar
  • 1,364
  • 2
  • 24
  • 46
1
vote
1 answer

Slim 3 + Pleague 2.4 - Alias (router) is not being managed by the container?

How do I use Pleaguev2.4 with Slim v3.8.1? Following this example, I tried: // PSR 7 standard. use Slim\Http\Request; use Slim\Http\Response; // Import classes. use Slim\App as Slim; use League\Container\Container; $container = new Container; //…
Run
  • 54,938
  • 169
  • 450
  • 748
1
vote
0 answers

PHP CSV League - How can I skip null value?

So, i'm using Laravel and PostgreSQL in my project and I wanna import the data to the database from my .csv file. I wrote this piece of code so far:
1
vote
2 answers

Dependency injection not working with League\Route and League\Container

I'm building a web application right now and I'm facing a problem with my controller. I want to send to my controller my League\Plate\Engine (registred in my Container) but I keep having the same error : Argument 3 passed to…
1
vote
1 answer

Laravel flysystem ftpd adapter

I want to use the ftpd Adapter in Laravel to access a Synology NAS, which seems to need this specific adapter https://github.com/thephpleague/flysystem/issues/305, but I get the error Driver [Ftpd] is not supported. The file is…
ndberg
  • 3,391
  • 1
  • 21
  • 36
1
vote
1 answer

Guide me implementing OAuth2 storage classes in thephpleague library

I am developing an oAuth 2.0 server using thephpleague library provided by Alex Bilbie. But, after the initializing the authorization server, when I declare the storage classes it throws an following error. "Fatal error: Class…
Sudhir Vadodariya
  • 391
  • 1
  • 2
  • 11
0
votes
0 answers

JWT Authorization token 401 Unauthorize

I was creating a oauth server but I always encountered a 401 Unauthorized error when passing the JWT token to the OAuth2 server. My symfony app version is 6.3. security.yml security: role_hierarchy: ROLE_ADMIN: ROLE_USER …
dual inline
  • 13
  • 1
  • 3
0
votes
0 answers

stevenmaguire/oauth2-microsoft - prompt=select_account

I have already implemented oAuth authentication with Microsoft and Google, but with Microsoft I run into the problem that the user cannot select his account and only the account currently selected in the background is submitted. However, this…
TFrank
  • 1
0
votes
0 answers

PHP League Container : Strategy pattern

I'm using the PHP League Container and I want to implement a strategy pattern. I want to connect to an external service with a different client class depending on the $version parameter that is passed to my adapter. I want to pass the client in to…
Andy
  • 2,095
  • 1
  • 29
  • 59
0
votes
1 answer

League\Commonmark + Drupal: Unable to find corresponding renderer for node type

I'm trying to render markdown using League\Commonmark 2.3.8 with extensions in Drupal and I'm getting the following error when I try to render with extensions: Unable to find corresponding renderer for node…
Patrick Kenny
  • 4,515
  • 7
  • 47
  • 76
0
votes
0 answers

Glide - Could not find the image error in Laravel

I have a weird issue with Glide on a fresh local Laravel install (PHP 8.1.13 / Laravel 9.44.0). I followed the documentation to the letter, my route looks like this: Route::get('/img/{path}', [ImageController::class, 'show'])->where('path',…
Exoseed
  • 11
  • 2
0
votes
1 answer

Oauth2 refresh_token is also generating new instead of using existing

I have setup this bundle https://github.com/thephpleague/oauth2-server-bundle to implement Oauth2 authentication. It works perfectly for access token generation and refresh token generation with expiry time. But when I generate new access token…
Jigar Pancholi
  • 1,209
  • 1
  • 8
  • 25