mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-09-10 12:39:38 +02:00
- add james-heinrich/getid3 library as a dependency to composer.json - update DEPENDENCIES.md file - fix episodes table migration script - add js devDependencies: prettier, @prettier/plugin-php and lint-staged to automatically format staged files before commit - reformat all files to the prettier format - refactor code by separating some logic as helper functions - overwrite existing files when uploading new files with the same name fixes #1
32 lines
681 B
PHP
32 lines
681 B
PHP
<?php namespace Config;
|
|
|
|
use CodeIgniter\Config\BaseConfig;
|
|
|
|
class Images extends BaseConfig
|
|
{
|
|
/**
|
|
* Default handler used if no other handler is specified.
|
|
*
|
|
* @var string
|
|
*/
|
|
public $defaultHandler = 'gd';
|
|
|
|
/**
|
|
* The path to the image library.
|
|
* Required for ImageMagick, GraphicsMagick, or NetPBM.
|
|
*
|
|
* @var string
|
|
*/
|
|
public $libraryPath = '/usr/local/bin/convert';
|
|
|
|
/**
|
|
* The available handler classes.
|
|
*
|
|
* @var array
|
|
*/
|
|
public $handlers = [
|
|
'gd' => \CodeIgniter\Images\Handlers\GDHandler::class,
|
|
'imagick' => \CodeIgniter\Images\Handlers\ImageMagickHandler::class,
|
|
];
|
|
}
|