Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Gets the current working directory
<?php getcwd(): string|false
<?php             'REQUEST_TIME' => time(),

            'REQUEST_TIME_FLOAT' => microtime(true),

            'QUERY_STRING' => $event->getQueryString(),

            'DOCUMENT_ROOT' => getcwd(),

            'REQUEST_URI' => $event->getUri(),

            'REMOTE_ADDR' => $event->getSourceIp(),

        ];
<?php         if (! $this->directory) {

            $this->directory = getcwd();

        }

    }
<?php     public function testĀ defaultĀ container(): void

    {

        $_SERVER['LAMBDA_TASK_ROOT'] = getcwd();



        $this->assertInstanceOf(FileHandlerLocator::class, Bref::getContainer());

    }