Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Commit

Permalink
Create Module.php
Browse files Browse the repository at this point in the history
  • Loading branch information
rkeet authored Mar 25, 2018
1 parent 2e2e528 commit 91fb5e6
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions src/Module.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php

namespace Keet\Form\Examples;

use Zend\ModuleManager\Feature\AutoloaderProviderInterface;
use Zend\ModuleManager\Feature\ConfigProviderInterface;

class Module implements ConfigProviderInterface, AutoloaderProviderInterface
{
/**
* @return array
*/
public function getConfig(): array
{
$config = [];

foreach (glob(dirname(__DIR__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . '*.php') as $filename) {
$config = array_merge_recursive($config, include $filename);
}

return $config;
}

/**
* @return array
*/
public function getAutoloaderConfig(): array
{
return [
'Zend\Loader\StandardAutoloader' => [
'namespaces' => [
__NAMESPACE__ => __DIR__,
],
],
];
}
}

0 comments on commit 91fb5e6

Please sign in to comment.