Added category column to activities table

This commit is contained in:
2023-07-18 13:25:04 +01:00
parent d69a89a761
commit cbfa4adfe3
4 changed files with 103 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ use Monolog\Logger;
use Psr\Container\ContainerInterface;
use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface as Request;
use UserFrosting\Sprinkle\Core\Log\MixedFormatter;
use UserFrosting\Sprinkle\UFTweaks\Twig\HasRoleExtension;
@@ -32,6 +33,19 @@ class ServicesProvider
*/
public function register(ContainerInterface $container)
{
/*
* Extend the 'classMapper' service to register sprunje classes.
*
* Mappings added: 'activity_sprunje'
*
* @return \UserFrosting\Sprinkle\Core\Util\ClassMapper
*/
$container->extend('classMapper', function ($classMapper, $c) {
$classMapper->setClassMapping('activity_sprunje', 'UserFrosting\Sprinkle\UFTweaks\Sprunje\ActivitySprunje');
return $classMapper;
});
/*
* Returns a callback that handles setting the `UF-Redirect` header after a successful login.
*