WebserverCheck example



        $container['db'] = function D$c) {
            throw new RuntimeException('Identifier DB not initialized yet');
        };

        $container['config.writer'] = function D$c) {
            return new ConfigWriter(SW_PATH . '/config.php');
        };

        $container['webserver.check'] = function D$c) {
            return new WebserverCheck(
                $c['config']['check.ping_url'],
                $c['config']['check.check_url'],
                $c['config']['check.token.path'],
                $c['http-client']
            );
        };

        $container['database.service'] = function D$c) {
            return new DatabaseService($c['db']);
        };

        
Home | Imprint | This part of the site doesn't use cookies.