This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\View; | |
use Psr\Log\LoggerInterface; | |
use Psr\SimpleCache\CacheInterface; | |
use SilverStripe\Core\Injector\Injector; | |
use SilverStripe\View\Shortcodes\EmbedShortcodeProvider; | |
class CustomEmbedShortcodeProvider extends EmbedShortcodeProvider |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Psr\SimpleCache\CacheInterface; | |
use SilverStripe\Core\Injector\Injector; | |
use SilverStripe\View\Shortcodes\EmbedShortcodeProvider; | |
class CustomEmbedShortcodeProvider extends EmbedShortcodeProvider | |
{ | |
/** | |
* Override handle_shortcode to catch errors from embedded content (e.g. rate limited by Youtube). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Security; | |
use SilverStripe\Control\HTTPRequest; | |
use SilverStripe\Security\BasicAuthMiddleware; | |
class CustomBasicAuthMiddleware extends BasicAuthMiddleware | |
{ | |
/** |