src/Manager.php
public function getAppliedRevisions($environment)
    {
        if (isset($this->appliedRevisions[$environment])) {
            return $this->appliedRevisions[$environment];
        }
        
        $documents = array_values(
            $this
                ->getLogCollection($environment)
                ->find()
                ->sort(array('revision' => 1))
                ->map(function ($document) {
                    return $document->revision;
                })
        );
            
        if (!$documents) {
            return array();
        }
        
        $this->appliedRevisions[$environment] = $documents;
            
        return $this->appliedRevisions[$environment];
    }
public function getAppliedRevisions($environment)
    {
        if (isset($this->appliedRevisions[$environment])) {
            return $this->appliedRevisions[$environment];
        }
        
        $documents = array_values(
            $this
                ->getLogCollection($environment)
                ->find()
                ->sort(array('revision' => 1))
                ->map(function ($document) {
                    return $document->revision;
                })
        );
            
        if (!$documents) {
            return array();
        }
        
        $this->appliedRevisions[$environment] = $documents;
            
        return $this->appliedRevisions[$environment];
    }
@param string $environment

@return array

@throws \Sokil\Mongo\Exception