silverstripe-framework/_config.php

28 lines
875 B
PHP
Raw Normal View History

<?php
2017-03-10 01:48:26 +01:00
use SilverStripe\Assets\File;
use SilverStripe\Assets\Image;
use SilverStripe\Dev\Deprecation;
2017-03-10 01:48:26 +01:00
use SilverStripe\Forms\HtmlEditor\EmbedShortcodeProvider;
use SilverStripe\View\Parsers\ShortcodeParser;
/**
* Framework configuration file
*
* Here you can make different settings for the Framework module (the core
* module).
*
*/
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'));
// 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');