42 lines
969 B
PHP
42 lines
969 B
PHP
<?php
|
|
|
|
/**
|
|
* @see https://github.com/laminas/laminas-serializer for the canonical source repository
|
|
* @copyright https://github.com/laminas/laminas-serializer/blob/master/COPYRIGHT.md
|
|
* @license https://github.com/laminas/laminas-serializer/blob/master/LICENSE.md New BSD License
|
|
*/
|
|
|
|
namespace Laminas\Serializer;
|
|
|
|
class ConfigProvider
|
|
{
|
|
/**
|
|
* Return configuration for this component.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function __invoke()
|
|
{
|
|
return [
|
|
'dependencies' => $this->getDependencyConfig(),
|
|
];
|
|
}
|
|
|
|
/**
|
|
* Return dependency mappings for this component.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function getDependencyConfig()
|
|
{
|
|
return [
|
|
// Legacy Zend Framework aliases
|
|
'aliases' => [
|
|
],
|
|
'factories' => [
|
|
'SerializerAdapterManager' => AdapterPluginManagerFactory::class,
|
|
],
|
|
];
|
|
}
|
|
}
|