Skip to content

Commit

Permalink
[Organizations] configured modules to include `public/static/Organiza…
Browse files Browse the repository at this point in the history
…tions` directory during composer installation ref yawik/standard#4
  • Loading branch information
kilip committed Nov 19, 2018
1 parent df3e5f4 commit df9ca78
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
namespace Organizations;

use Core\ModuleManager\ModuleConfigLoader;
use Core\Options\ModuleOptions as CoreOptions;
use Yawik\Composer\RequireDirectoryPermissionInterface;
use Zend\EventManager\EventInterface;
use Zend\ModuleManager\Feature\DependencyIndicatorInterface;
use Zend\Mvc\MvcEvent;
Expand All @@ -18,8 +20,19 @@
/**
* Bootstrap class of the organizations module
*/
class Module implements BootstrapListenerInterface, DependencyIndicatorInterface
class Module implements BootstrapListenerInterface, DependencyIndicatorInterface, RequireDirectoryPermissionInterface
{
/**
* @param CoreOptions $options
* @return array
*/
public function getRequiredDirectoryLists(CoreOptions $options)
{
return [
$options->getPublicDir().'/static/Organizations/Image'
];
}

/**
* Loads module specific configuration.
*
Expand Down

0 comments on commit df9ca78

Please sign in to comment.