Doctrine\Common\Persistence\Mapping\Driver\FileDriver::__construct
Initializes a new FileDriver that looks in the given path(s) for mapping documents and operates in the specified operating mode.
Signature
public function __construct(string|array|FileLocator
$locator,
[string
$fileExtension = null] )
Parameters
$locator
— object- A FileLocator or one/multiple paths where mapping documents can be found.
$fileExtension
— string