ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilTestProcessLockFileStorage.php
Go to the documentation of this file.
1<?php
18declare(strict_types=1);
19
27{
28 public function __construct(int $contextId)
29 {
31 }
32
41 protected function getPathPrefix(): string
42 {
43 return 'ilTestProcessLocks';
44 }
45
55 protected function getPathPostfix(): string
56 {
57 return 'context';
58 }
59
60 public function create(): void
61 {
62 set_error_handler(function ($severity, $message, $file, $line): void {
63 throw new ErrorException($message, $severity, 0, $file, $line);
64 });
65
66 try {
67 parent::create();
68 restore_error_handler();
69 } catch (Exception $e) {
70 restore_error_handler();
71 }
72
73 if (!$this->getFileSystemService()->has($this->path)) {
74 throw new ErrorException(sprintf('Could not find directory: %s', $this->getPath()));
75 }
76 }
77}
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
has(string $class_name)
$message
Definition: xapiexit.php:31