35 $defaultDriverPrefix =
'Magento\Framework\Profiler\Driver\\',
36 $defaultDriverType =
'standard' 38 $this->_defaultDriverPrefix = $defaultDriverPrefix;
39 $this->_defaultDriverType = $defaultDriverType;
55 $class = $this->_defaultDriverPrefix . ucfirst(
$type);
57 throw new \InvalidArgumentException(
58 sprintf(
"Cannot create profiler driver, class \"%s\" doesn't exist.",
$class)
64 throw new \InvalidArgumentException(
66 "Driver class \"%s\" must implement \Magento\Framework\Profiler\DriverInterface.",
__construct( $defaultDriverPrefix='Magento\Framework\Profiler\Driver\\', $defaultDriverType='standard')
$_option $_optionId $class
create(array $config=null)