[GH-ISSUE #342] The controller for URI "/" is not callable: Identifier "flysystems" is not defined. #756

Closed
opened 2026-03-15 15:18:02 +03:00 by kerem · 4 comments
Owner

Originally created by @uzairwp on GitHub (Oct 10, 2022).
Original GitHub issue: https://github.com/flyimg/flyimg/issues/342

how can we implement BunnyCDN storage? I tested multiple repositories and all of them gave the error "Identifier "flysystems" is not defined."?

flysystem bunny storage
flysystem adaptor 2

Originally created by @uzairwp on GitHub (Oct 10, 2022). Original GitHub issue: https://github.com/flyimg/flyimg/issues/342 how can we implement BunnyCDN storage? I tested multiple repositories and all of them gave the error "Identifier "flysystems" is not defined."? [flysystem bunny storage](https://github.com/PlatformCommunity/flysystem-bunnycdn ) [flysystem adaptor 2](https://github.com/tinect/bunnycdn-s3-flysystem2-adapter)
kerem closed this issue 2026-03-15 15:18:08 +03:00
Author
Owner

@sadok-f commented on GitHub (Oct 11, 2022):

Hi @uzairwp

thanks for opening this issue.

how you tried to implement the BunnyCDN storage? you should follow one of the StorageProvider implementations here:
https://github.com/flyimg/flyimg/tree/main/src/Core/StorageProvider

if you did that already, maybe you can share the code.

thanks!

<!-- gh-comment-id:1274860436 --> @sadok-f commented on GitHub (Oct 11, 2022): Hi @uzairwp thanks for opening this issue. how you tried to implement the BunnyCDN storage? you should follow one of the StorageProvider implementations here: https://github.com/flyimg/flyimg/tree/main/src/Core/StorageProvider if you did that already, maybe you can share the code. thanks!
Author
Owner

@uzairwp commented on GitHub (Oct 12, 2022):

Hi @uzairwp

thanks for opening this issue.

how you tried to implement the BunnyCDN storage? you should follow one of the StorageProvider implementations here: https://github.com/flyimg/flyimg/tree/main/src/Core/StorageProvider

if you did that already, maybe you can share the code.

thanks!

Argument 1 passed to PlatformCommunity\Flysystem\BunnyCDN\BunnyCDNAdapter::__construct() must be an instance of PlatformCommunity\Flysystem\BunnyCDN\BunnyCDNClient, null given

class bunnystorage implements ServiceProviderInterface
{

  
   public function register(Container $app)
    {
        $bunnycdn = new BunnyCDNAdapter(
    new BunnyCDNClient(
        'flyimg', 
        'myapi', 
        BunnyCDNRegion::NEW_YORK
    )
);

        $app->register(
            new FlysystemServiceProvider(),
            [
                'flysystem.filesystems' => [
                    'storage_handler' => [
                        'adapter' => 'PlatformCommunity\Flysystem\BunnyCDN\BunnyCDNAdapter',
          
                        'args' => [$bunny],
                    ],
                ],
            ]
        );

        return $app;
    }
}


<!-- gh-comment-id:1276434409 --> @uzairwp commented on GitHub (Oct 12, 2022): > Hi @uzairwp > > thanks for opening this issue. > > how you tried to implement the BunnyCDN storage? you should follow one of the StorageProvider implementations here: https://github.com/flyimg/flyimg/tree/main/src/Core/StorageProvider > > if you did that already, maybe you can share the code. > > thanks! **Argument 1 passed to PlatformCommunity\Flysystem\BunnyCDN\BunnyCDNAdapter::__construct() must be an instance of PlatformCommunity\Flysystem\BunnyCDN\BunnyCDNClient, null given** ``` class bunnystorage implements ServiceProviderInterface { public function register(Container $app) { $bunnycdn = new BunnyCDNAdapter( new BunnyCDNClient( 'flyimg', 'myapi', BunnyCDNRegion::NEW_YORK ) ); $app->register( new FlysystemServiceProvider(), [ 'flysystem.filesystems' => [ 'storage_handler' => [ 'adapter' => 'PlatformCommunity\Flysystem\BunnyCDN\BunnyCDNAdapter', 'args' => [$bunny], ], ], ] ); return $app; } } ```
Author
Owner

@sadok-f commented on GitHub (Oct 13, 2022):

Can you try this code:

class bunnystorage implements ServiceProviderInterface
{

  
   public function register(Container $app)
    {
        $bunny = new BunnyCDNClient(
          'flyimg', 
          'myapi', 
           BunnyCDNRegion::NEW_YORK
          );

        $app->register(
            new FlysystemServiceProvider(),
            [
                'flysystem.filesystems' => [
                    'storage_handler' => [
                        'adapter' => 'PlatformCommunity\Flysystem\BunnyCDN\BunnyCDNAdapter',
          
                        'args' => [$bunny],
                    ],
                ],
            ]
        );

        return $app;
    }
}
<!-- gh-comment-id:1278046459 --> @sadok-f commented on GitHub (Oct 13, 2022): Can you try this code: ``` class bunnystorage implements ServiceProviderInterface { public function register(Container $app) { $bunny = new BunnyCDNClient( 'flyimg', 'myapi', BunnyCDNRegion::NEW_YORK ); $app->register( new FlysystemServiceProvider(), [ 'flysystem.filesystems' => [ 'storage_handler' => [ 'adapter' => 'PlatformCommunity\Flysystem\BunnyCDN\BunnyCDNAdapter', 'args' => [$bunny], ], ], ] ); return $app; } } ```
Author
Owner

@sadok-f commented on GitHub (Dec 5, 2022):

Assuming the issue was fixed.

<!-- gh-comment-id:1337055005 --> @sadok-f commented on GitHub (Dec 5, 2022): Assuming the issue was fixed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/flyimg#756
No description provided.