ILIAS  release_8 Revision v8.24
BasicAccessCheckClosuresSingleton.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
6
7use Closure;
8use ReflectionFunction;
9use Throwable;
10use InvalidArgumentException;
12
13/******************************************************************************
14 *
15 * This file is part of ILIAS, a powerful learning management system.
16 *
17 * ILIAS is licensed with the GPL-3.0, you should have received a copy
18 * of said license along with the source code.
19 *
20 * If this is not the case or you just want to try ILIAS, you'll find
21 * us at:
22 * https://www.ilias.de
23 * https://github.com/ILIAS-eLearning
24 *
25 *****************************************************************************/
26
33{
34 protected static ?BasicAccessCheckClosures $instance = null;
35
39 private function __construct()
40 {
41 }
42
43 public static function getInstance(): BasicAccessCheckClosures
44 {
45 if (!self::$instance instanceof BasicAccessCheckClosures) {
46 self::$instance = new BasicAccessCheckClosures();
47 }
48
49 return self::$instance;
50 }
51}
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:32