Skip to content
Snippets Groups Projects
Select Git revision
  • 25662318b611f5843618fd229661f63561f512e4
  • main default protected
  • step-3263
  • feature/plugins-cli
  • feature/vite
  • step-2484-peerreview
  • biest/issue-5051
  • tests/simplify-jsonapi-tests
  • fix/typo-in-1a70031
  • feature/broadcasting
  • database-seeders-and-factories
  • feature/peer-review-2
  • feature-feedback-jsonapi
  • feature/peerreview
  • feature/balloon-plus
  • feature/stock-images-unsplash
  • tic-2588
  • 5.0
  • 5.2
  • biest/unlock-blocks
  • biest-1514
21 results

MyRealmModel.php

Blame
  • Forked from Stud.IP / Stud.IP
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    bootstrap-definitions.php 773 B
    <?php
    
    use Monolog\Handler\StreamHandler;
    use Monolog\Logger;
    use Psr\Container\ContainerInterface;
    use Psr\Log\LoggerInterface;
    
    return [
        LoggerInterface::class => DI\factory(function () {
            return new Logger('studip', [
                new StreamHandler(
                    $GLOBALS['TMP_PATH'] . '/studip.log',
                    \Studip\ENV === 'development' ? Logger::DEBUG : Logger::ERROR
                ),
            ]);
        }),
        StudipCache::class => DI\factory(function () {
            return StudipCacheFactory::getCache();
        }),
        StudipPDO::class => DI\factory(function () {
            return DBManager::get();
        }),
        Trails_Dispatcher::class => DI\factory(function (ContainerInterface $container) {
            return new \StudipDispatcher($container);
        }),
    ];