2 ms·
The namespace separator in PHP is \. It seems like a horrible idea at first, but in practice the only place you ever see it is at the top of files: use Psr
by __david__ 11y ago
The namespace separator in PHP is \. It seems like a horrible idea at first, but in practice the only place you ever see it is at the top of files:
use Psr\Log\NullLogger;
use Psr\Log\LoggerInterface;
use Psr\Log\LogLevel;
…and then the rest of the code just uses NullLogger, LoggerInterface and LogLevel.