AppserverIo\Appserver\Core\Api\AppService::findAll PHP Méthode

findAll() public méthode

Returns all deployed applications.
See also: ServiceInterface::findAll()
public findAll ( ) : array
Résultat array All deployed applications
    public function findAll()
    {
        $appNodes = array();
        foreach ($this->getSystemConfiguration()->getApps() as $appNode) {
            $appNodes[$appNode->getPrimaryKey()] = $appNode;
        }
        return $appNodes;
    }

Usage Example

Exemple #1
0
 /**
  * Test if the findAll() method returns the correct number of elements.
  *
  * @return null
  */
 public function testFindAll()
 {
     $this->assertCount(4, $this->appService->findAll());
 }