Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

hotfix : restrict other "in db" modules to be download-able #90

Merged
merged 1 commit into from
Dec 27, 2014

Conversation

samsonasik
Copy link
Member

currently, list module that can be downloaded comes from ApplicationConfig which should be avoided and should use in db modules instead.

@samsonasik samsonasik added this to the 0.0.3 milestone Dec 27, 2014
->getRepository('Application\Entity\ModuleList')
->findAll() as $module) {
$moduleList[] = $module->getModuleName();
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is loop in factory ok ? or create new service just to collect array of moduleName ? or use loop in controller instead ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any problem

Alejandro Celaya Alastrué
http://www.alejandrocelaya.com
El 27/12/2014 03:26, "Abdul Malik Ikhsan" notifications@github.com
escribió:

In
module/Application/src/Application/Factory/Controller/DownloadControllerFactory.php
#90 (diff):

@@ -14,7 +14,13 @@ class DownloadControllerFactory implements FactoryInterface
public function createService(ServiceLocatorInterface $serviceLocator)
{
$services = $serviceLocator->getServiceLocator();

  •    $moduleList = [];
    
  •    foreach ($services->get('Doctrine\ORM\EntityManager')
    
  •                           ->getRepository('Application\Entity\ModuleList')
    
  •                           ->findAll() as $module) {
    
  •        $moduleList[] = $module->getModuleName();
    
  •    }
    

is loop in factory ok ? or create new service just to collect array of
moduleName ? or use loop in controller instead ?


Reply to this email directly or view it on GitHub
https://github.com/sitrunlab/LearnZF2/pull/90/files#r22290687.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, merging ;)

samsonasik added a commit that referenced this pull request Dec 27, 2014
samsonasik added a commit that referenced this pull request Dec 27, 2014
* hotfix/download-restrict:
  changelog of #90
  hotfix : restrict other "in db" module to be download-able
samsonasik added a commit that referenced this pull request Dec 27, 2014
Forward port #90

* master:
  changelog of #90
  hotfix : restrict other "in db" module to be download-able
@samsonasik samsonasik merged commit d172544 into sitrunlab:master Dec 27, 2014
@samsonasik samsonasik deleted the hotfix/download-restrict branch December 27, 2014 08:14
@samsonasik
Copy link
Member Author

merged.
master : 2497d73
develop : c1550e8
changelog : c4dcfe7

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants