Get all app register on apps.json
@return array Apps register
548611
public static function registerBaseApps():array
    {
        $classes = self::getBaseClassFile();

        $apps = array();
        foreach ($classes as $class => $val) {
            $val = (array)$val;
            $apps[$val['name']] =  array("name" => $val['name'], "appclass" => new $val['class'](),
                "base_url" => $val['base_url'], "status_dev" => $val['status_dev'],
                "status_prod" => $val['status_prod']);
        };

        return $apps;
    }
638508
public function all(Request $request)
    {
        $app = $this->app;

        $store = $this->getStore();

        return $app->json(array(
            'success' => true,
            'results' => $store->findAll(
                [],
                $request->get('sort', $this->sort)
            )
        ));
    }
319320
public function getAllModules()
    {
        $modules = array_map(function ($value) {
            return $this->loadModule($value);
        }, $this->registry->getMap());

        return array_filter($modules, function ($module) {
            return !is_null($module);
        });
    }
980213
public static function getSimpleAppFormat(array $apps):array
    {
        $narray = array();
        foreach ($apps as $oneapp => $val) {
            $e = AppConfig::getInstance($oneapp);
            if ($e->checkVisibility()) {
                array_push($narray, array("name" => $oneapp, "value" => $val));
            }
        }
        return ($narray);
    }
150162
public function all()
    {
        $endpoint = '/admin/users.json';
        $response = $this->request($endpoint);
        return $this->createCollection(User::class, $response['users']);
    }
1309961
public function all()
    {
        $args = func_get_args();
        $name = array_shift($args);
        $results = array();
        foreach ($this->clients as $client) {
            $results[] = call_user_func_array([$client, $name], $args);
        }
        return $results;
    }
1068617
public static function all()
    {
        $plugins = Grav::instance()['plugins'];
        $list = [];

        foreach ($plugins as $instance) {
            $name = $instance->name;
            $result = self::get($name);

            if ($result) {
                $list[$name] = $result;
            }
        }

        return $list;
    }
6656
public function instanceAllApps(): array
    {
        $allAppIds = $this->applicationConfig->getAllApplicationIds();

        return array_map(function (string $id) {
            return $this->instanceAppById($id);
        }, $allAppIds);
    }
1259184
public function register(Application $app)
    {
        $app['install.generate-proxy'] = $app->share(function ($app) {
            $command = new GenerateInstallCommandProxy('install:generate');
            $command->setFactory($app->raw('install.generate'))
                ->setApp($app);
            return $command;
        });

        $app['install.generate'] = $app->share(function ($app) {
            $command = new GenerateInstallCommand();

            $command->setDbConfig($app['config']->load('db'));
            $command->setInstallConfig($app['config']->load('install'));

            return $command;
        });

        $app['install.run-proxy'] = $app->share(function ($app) {
            $command = new RunInstallCommandProxy('install:run');
            $command->setFactory($app->raw('install.run'))
                ->setApp($app);
            return $command;
        });

        $app['install.run'] = $app->share(function ($app) {
            $command = new RunInstallCommand();

            $command->setDatabaseAdapter($app['db']);
            $command->setAppEnv($app['environment']);
            $command->setRunMigrationsCommand($app['migrations.run-proxy']);
            $command->setGenerateInstallCommand($app['install.generate-proxy']);

            return $command;
        });
    }
1167660
private function getApp()
	{
		$stack = $this->resolve('requeststack');

		if ($request = $stack->top())
		{
			$app = $request->getApplication();
		}
		else
		{
			$app = $this->resolve('application::__main');
		}

		return $app;
	}
1080199
public function getAll() 
    {
        return [
            self::ENTRY_ID         => $this->getId(),
            self::ENTRY_NAME       => $this->getName(),
            self::ENTRY_TYPE       => $this->getType(),
        ];
    }
695798
protected function registerServices()
    {
        $services = array_filter($this->config->get('app.services'), function ($service) {
            return class_exists($service);
        });

        foreach ($services as $service) {
            /** @var \Fyuze\Kernel\Service $obj */
            $obj = new $service($this->container);
            $obj->services();

            $this->services[] = $obj;
        }
    }
740832
public function getAll()
    {
        $result = [];
        $clearedRequestCookies = $this->responseCookies->getClearedCookies();
        foreach ($this->request->cookies->all() as $name => $value) {
            if (!in_array($name, $clearedRequestCookies, true)) {
                $result[$name] = $value;
            }
        }
        foreach ($this->responseCookies->getCookies() as $cookie) {
            if ($cookie->getExpiresTime() !== 0 && $cookie->isCleared()) {
                unset($result[$cookie->getName()]);
            } else {
                $result[$cookie->getName()] = $cookie->getValue();
            }
        }

        return $result;
    }
247371
public function register(Application $app)
    {
        $app['ladybug.options'] = array(
            'theme' => 'modern',
            'expanded' => false,
            'silenced' => false,
            'array_max_nesting_level' => 9,
            'object_max_nesting_level' => 3,
        );

        $app['ladybug.dumper'] = $app->share(function () use ($app) {
            $dumper = new Dumper();
            $dumper->setOptions( $app['ladybug.options'] );

            return $dumper;
        });

        $app['ladybug'] = $app->share(function() use ($app){
            return new LadybugDataCollector( $app['ladybug.dumper'] );
        });

        $app['twig'] = $app->share($app->extend('twig', function (\Twig_Environment $twig, $app) {
            $twig->addExtension(new LadybugExtension($app));

            return $twig;
        }));

        if( isset( $app['profiler'] ) ) {
            $app['twig.loader.filesystem'] = $app->share($app->extend('twig.loader.filesystem', function ($loader, $app) {
                $loader->addPath($app['rswork.templates_path'], 'Rswork');
                return $loader;
            }));

            $app['rswork.templates_path'] = function () {
                return realpath(__DIR__.'/../../views');
            };

            $app['data_collector.templates'] = array_merge(
                $app['data_collector.templates'],
                array(array('ladybug', '@Rswork/collector/ladybug.html.twig'))
            );

            $app['data_collectors'] = $app->share( $app->extend( 'data_collectors', function( $collectors, $app ){
                $collectors['ladubug'] = $app->share(function( $app ){
                    return $app['ladybug'];
                });

                return $collectors;
            } ) );
        }
    }
420487
public function toArray()
    {
        return [
            'success'          => $this->isSuccess(),
            'hostname'         => $this->getHostname(),
            'challenge_ts'     => $this->getChallengeTs(),
            'apk_package_name' => $this->getApkPackageName(),
            'error-codes'      => $this->getErrorCodes(),
        ];
    }
292492
public function all()
    {
        return array_merge($this->messages[self::DURABLE], $this->messages[self::NOW]);
    }
1183071
protected function getRegistrations() {
        if (!$this->_registrations) {
            $this->_registrations = new AuthTypeRegistrationsList(
                $this->version,
                $this->solution['accountSid'],
                $this->solution['domainSid']
            );
        }

        return $this->_registrations;
    }