33 lines
1.2 KiB
PHP
33 lines
1.2 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Mezzio\Authentication\AuthenticationInterface;
|
|
use Mezzio\Authentication\Session\PhpSession;
|
|
use Mezzio\Authentication\UserRepository\PdoDatabase;
|
|
use Mezzio\Authentication\UserRepositoryInterface;
|
|
|
|
return [
|
|
// Provides application-wide services.
|
|
// We recommend using fully-qualified class names whenever possible as
|
|
// service names.
|
|
'dependencies' => [
|
|
// Use 'aliases' to alias a service name to another service. The
|
|
// key is the alias name, the value is the service to which it points.
|
|
'aliases' => [
|
|
AuthenticationInterface::class => PhpSession::class,
|
|
UserRepositoryInterface::class => PdoDatabase::class,
|
|
],
|
|
// Use 'invokables' for constructor-less services, or services that do
|
|
// not require arguments to the constructor. Map a service name to the
|
|
// class name.
|
|
'invokables' => [
|
|
// Fully\Qualified\InterfaceName::class => Fully\Qualified\ClassName::class,
|
|
],
|
|
// Use 'factories' for services provided by callbacks/factory classes.
|
|
'factories' => [
|
|
// Fully\Qualified\ClassName::class => Fully\Qualified\FactoryName::class,
|
|
],
|
|
],
|
|
];
|