src/PlaygroundFacebook/Module.php
public function populateAppIds($e)
    {
        $appsArray = $e->getParam('apps');

        $appService = $e->getTarget()
        ->getServiceManager()
        ->get('playgroundfacebook_app_service');
        $apps = $appService->getAvailableApps();

        foreach ($apps as $app) {
            $app_label = '';
            if ($app->getAppName()) {
                $app_label .= $app->getAppName();
            }
            if ($app->getAppId()) {
                $app_label .= ' ('.$app->getAppId().')';
            }
            $appsArray[$app->getAppId()] = $app_label;
        }

        return $appsArray;
    }
public function populateAppIds($e)
    {
        $appsArray = $e->getParam('apps');

        $appService = $e->getTarget()
        ->getServiceManager()
        ->get('playgroundfacebook_app_service');
        $apps = $appService->getAvailableApps();

        foreach ($apps as $app) {
            $app_label = '';
            if ($app->getAppName()) {
                $app_label .= $app->getAppName();
            }
            if ($app->getAppId()) {
                $app_label .= ' ('.$app->getAppId().')';
            }
            $appsArray[$app->getAppId()] = $app_label;
        }

        return $appsArray;
    }
public function populateAppIds ( $ e ) { $ appsArray = $ e -> getParam ( 'apps' ) ; $ appService = $ e -> getTarget ( ) -> getServiceManager ( ) -> get ( 'playgroundfacebook_app_service' ) ; $ apps = $ appService -> getAvailableApps ( ) ; foreach ( $ apps as $ app ) { $ app_label = '' ; if ( $ app -> getAppName ( ) ) { $ app_label .= $ app -> getAppName ( ) ; } if ( $ app -> getAppId ( ) ) { $ app_label .= ' (' . $ app -> getAppId ( ) . ')' ; } $ appsArray [ $ app -> getAppId ( ) ] = $ app_label ; } return $ appsArray ; }
This method get the Fb apps and add them as array to PlaygroundGame form so
that there is non adherence between modules...
not that satisfied neither

@param  EventManager $e
@return array
This method get the Fb apps and add them as array to PlaygroundGame form so that there is non adherence between modules ... not that satisfied neither