|
const | VERSION = '3.5.3' |
|
const | COMMANDS_NAMESPACE = 'CKSource\\CKFinder\\Command\\' |
|
const | PLUGINS_NAMESPACE = 'CKSource\\CKFinder\\Plugin\\' |
|
const | CHARS = '123456789ABCDEFGHJKLMNPQRSTUVWXYZ' |
|
|
| $plugins = [] |
|
| $booted = false |
|
The main CKFinder class.
It is based on Pimple so it also serves as a dependency injection container.
◆ __construct()
Constructor.
- Parameters
-
array | string | $config | an array containing configuration options or a path to the configuration file |
- See also
- config.php
◆ boot()
Prepares application environment before the Request is dispatched.
- Exceptions
-
CKFinderException | |
InvalidPluginException | |
◆ checkRequirements()
Checks PHP requirements.
- Exceptions
-
◆ debug()
debug |
( |
|
$message, |
|
|
array |
$context = [] |
|
) |
| |
Shorthand for debugging using the defined logger.
- Parameters
-
◆ getAcl()
◆ getBackendFactory()
Returns the BackedFactory service.
◆ getConnectorUrl()
getConnectorUrl |
( |
|
$full = true | ) |
|
Returns the connector URL based on the current request.
- Parameters
-
bool | true | $full | if set to true , the returned URL contains the scheme and host |
◆ getExtraHeaders()
Returns an array of extra headers defined in the headers
configuration option.
- Returns
- array an array of headers
◆ getPlugin()
Returns a plugin by the name.
- Parameters
-
◆ getPlugins()
Returns an array containing all registered plugins.
- Returns
- array array of PluginInterface-s
◆ getResizedImageRepository()
getResizedImageRepository |
( |
| ) |
|
Returns the resized image repository.
◆ getWorkingFolder()
Returns the current WorkingFolder object.
◆ handleOptionsRequest()
handleOptionsRequest |
( |
RequestEvent |
$event | ) |
|
A handler for the OPTIONS HTTP method.
If the request HTTP method is OPTIONS, it returns an empty response with extra headers defined in the configuration. This handler is executed very early, so if required, the response is set even before the controller for the current request is resolved.
◆ registerPlugin()
◆ registerPlugins()
Registers plugins defined in the configuration file.
- Exceptions
-
LogicException in case the plugin was not found or is invalid
The documentation for this class was generated from the following file: