mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
ad9d4e6820
* New shortcode providers, update config, docs * Use new ImageShortcodeProvider * Move tests * New shortcodes namespace * Move file and image shortcode registrations from framework to assets
20 lines
526 B
PHP
20 lines
526 B
PHP
<?php
|
|
|
|
use SilverStripe\Dev\Deprecation;
|
|
use SilverStripe\View\Shortcodes\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')
|
|
->register('embed', [EmbedShortcodeProvider::class, 'handle_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');
|