AppserverIo\Appserver\Core\Api\AppService::findAll PHP Method

findAll() public method

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

Usage Example

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