mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-16 13:07:14 +01:00
49 lines
974 B
PHP
49 lines
974 B
PHP
<?php
|
|
|
|
namespace Xentral\Widgets\ChunkedUpload;
|
|
|
|
final class Bootstrap
|
|
{
|
|
/**
|
|
* @return array
|
|
*/
|
|
public static function registerJavascript()
|
|
{
|
|
return [
|
|
'chunkedupload' => [
|
|
'./classes/Widgets/ChunkedUpload/www/js/jquery.chunkedUpload.js',
|
|
],
|
|
];
|
|
}
|
|
|
|
/**
|
|
* @return array
|
|
*/
|
|
public static function registerStylesheets()
|
|
{
|
|
return [
|
|
'chunkedupload' => [
|
|
'./classes/Widgets/ChunkedUpload/www/css/chunked_upload.css',
|
|
],
|
|
];
|
|
}
|
|
|
|
/**
|
|
* @return array
|
|
*/
|
|
public static function registerServices()
|
|
{
|
|
return [
|
|
'ChunkedUploadRequestHandler' => 'onInitChunkedUploadRequestHandler',
|
|
];
|
|
}
|
|
|
|
/**
|
|
* @return ChunkedUploadRequestHandler
|
|
*/
|
|
public static function onInitChunkedUploadRequestHandler()
|
|
{
|
|
return new ChunkedUploadRequestHandler();
|
|
}
|
|
}
|