src/Hive/Hive.php
protected function initPromises($promisesTrait)
    {
        return $promisesTrait->findOne($this->createFindOneClosure())
            ->findMany($this->createFindManyClosure())
            ->renderResult($this->createRenderResultClosure())
            ->allowRequest($this->createAllowRequestClosure());
    }
protected function initPromises($promisesTrait)
    {
        return $promisesTrait->findOne($this->createFindOneClosure())
            ->findMany($this->createFindManyClosure())
            ->renderResult($this->createRenderResultClosure())
            ->allowRequest($this->createAllowRequestClosure());
    }
protected function initPromises ( $ promisesTrait ) { return $ promisesTrait -> findOne ( $ this -> createFindOneClosure ( ) ) -> findMany ( $ this -> createFindManyClosure ( ) ) -> renderResult ( $ this -> createRenderResultClosure ( ) ) -> allowRequest ( $ this -> createAllowRequestClosure ( ) ) ; }
Method for initializing a PromisesTrait object with the Closures

@param PromisesTrait|Hive|Resource $promisesTrait
@return PromisesTrait|Hive|Resource
Method for initializing a PromisesTrait object with the Closures