BEdita API doc | 4-cactus
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Download

Namespaces

  • BEdita
    • API
      • Auth
      • Controller
        • Admin
        • Component
        • Model
      • Error
      • Event
      • Exception
      • Middleware
      • Model
        • Action
      • Network
        • Exception
      • Shell
      • TestSuite
      • Utility
    • Core
      • Configure
        • Engine
      • Database
        • Type
      • Exception
      • Filesystem
        • Adapter
        • Exception
        • Thumbnail
      • I18n
      • Job
        • Service
      • Mailer
        • Preview
        • Transport
      • Model
        • Action
        • Behavior
        • Entity
        • Table
        • Validation
      • ORM
        • Inheritance
        • Locator
        • Rule
      • Shell
        • Task
      • State
      • TestSuite
        • Fixture
      • Utility

Classes

  • FilesystemAdapter
  • FilesystemRegistry
  • Thumbnail
  • ThumbnailGenerator
  • ThumbnailRegistry

Interfaces

  • GeneratorInterface

Class FilesystemRegistry

Registry for filesystem adapters.

Cake\Core\ObjectRegistry
Extended by BEdita\Core\Filesystem\FilesystemRegistry uses BEdita\Core\SingletonTrait, Cake\Core\StaticConfigTrait (not available)
Namespace: BEdita\Core\Filesystem
Since: 4.0.0
Located at Core/src/Filesystem/FilesystemRegistry.php

Methods summary

protected
# _resolveClassName( $class )
protected
# _throwMissingClassError( $class, $plugin )
protected
# _create( $class, $alias, $config )
public BEdita\Core\Filesystem\FilesystemAdapter|null
# get( $name )

Returns

BEdita\Core\Filesystem\FilesystemAdapter|null
public static
# dropAll( )

Drop all filesystems.

Drop all filesystems.

public static League\Flysystem\MountManager
# getMountManager( )

Get mount manager to transparently handle files basing on the prefix.

Get mount manager to transparently handle files basing on the prefix.

Returns

League\Flysystem\MountManager
public static string
# getPublicUrl( string $path )

Get public URL for a file.

Get public URL for a file.

Parameters

$path
Original path.

Returns

string

Throws

League\Flysystem\FilesystemNotFoundException

Throws an exception if a filesystem with such prefix could not be found.

protected static string[]
# getPrefixAndPath( string $path )

Split path into prefix and path.

Split path into prefix and path.

Parameters

$path
Original path.

Returns

string[]

Throws

InvalidArgumentException
Throws an exception if path could not be parsed.

See

\League\Flysystem\MountManager::getPrefixAndPath()

Methods used from BEdita\Core\SingletonTrait

__clone(), __construct(), getInstance()

Properties summary

protected League\Flysystem\MountManager $mountManager

Mount manager.

Mount manager.

#
protected static array $_dsnClassMap

An array mapping url schemes to fully qualified Log engine class names

An array mapping url schemes to fully qualified Log engine class names

# [ 'local' => LocalAdapter::class, ]

Properties used from BEdita\Core\SingletonTrait

$uniqueInstance

BEdita API doc | 4-cactus API documentation generated by ApiGen