2007-07-19 12:40:28 +02:00
|
|
|
<?php
|
|
|
|
|
2017-03-10 01:48:26 +01:00
|
|
|
use SilverStripe\Assets\File;
|
|
|
|
use SilverStripe\Assets\Image;
|
2016-08-19 00:51:35 +02:00
|
|
|
use SilverStripe\Dev\Deprecation;
|
2017-03-10 01:48:26 +01:00
|
|
|
use SilverStripe\Forms\HtmlEditor\EmbedShortcodeProvider;
|
2016-08-19 00:51:35 +02:00
|
|
|
use SilverStripe\View\Parsers\ShortcodeParser;
|
|
|
|
|
2007-09-15 02:08:23 +02:00
|
|
|
/**
|
2012-03-24 04:38:57 +01:00
|
|
|
* Framework configuration file
|
2007-09-15 02:08:23 +02:00
|
|
|
*
|
2012-03-24 04:38:57 +01:00
|
|
|
* Here you can make different settings for the Framework module (the core
|
2007-09-15 02:08:23 +02:00
|
|
|
* module).
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2015-09-15 04:52:02 +02:00
|
|
|
ShortcodeParser::get('default')
|
2017-03-10 01:48:26 +01:00
|
|
|
->register('file_link', array(File::class, 'handle_shortcode'))
|
|
|
|
->register('embed', array(EmbedShortcodeProvider::class, 'handle_shortcode'))
|
|
|
|
->register('image', array(Image::class, 'handle_shortcode'));
|
2016-03-08 12:20:51 +01:00
|
|
|
|
|
|
|
// Shortcode parser which only regenerates shortcodes
|
|
|
|
ShortcodeParser::get('regenerator')
|
2017-03-10 01:48:26 +01:00
|
|
|
->register('image', array(Image::class, 'regenerate_shortcode'));
|
2012-03-01 09:13:42 +01:00
|
|
|
|
2013-03-20 11:53:09 +01:00
|
|
|
// If you don't want to see deprecation errors for the new APIs, change this to 3.2.0-dev.
|
|
|
|
Deprecation::notification_version('3.2.0');
|