for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Dasao\SentryLogger;
use Zend\Stratigility\Middleware\ErrorHandler;
/**
* The configuration provider for the User module
*
* @see https://docs.zendframework.com/zend-component-installer/
*/
class ConfigProvider
{
* Returns the configuration array
* To add a bit of a structure, each section is defined in a separate
* method which returns an array with its configuration.
* @return array
public function __invoke() : array
return [
'dependencies' => $this->getDependencies(),
];
}
* Returns the container dependencies
public function getDependencies() : array
'invokables' => [],
'factories' => [
Log\SentryLogger::class => Log\SentryLoggerFactory::class,
Log\SentryLoggerConfig::class => Log\SentryLoggerConfigFactory::class,
],
'delegators' => [
ErrorHandler::class => [
Listener\SentryErrorListenerDelegatorFactory::class,