seregazhuk\PinterestBot\Factories\PinterestBot::create PHP Method

create() public static method

Initializes Bot instance and all its dependencies.
public static create ( ) : Bot
return seregazhuk\PinterestBot\Bot
    public static function create()
    {
        $request = self::makeRequest();
        $providersContainer = new ProvidersContainer($request, new Response());
        return new Bot($providersContainer);
    }

Usage Example

コード例 #1
0
ファイル: BotTest.php プロジェクト: dave-ac/vSimpleMVC
 protected function setUp()
 {
     $this->bot = PinterestBot::create();
     $this->reflection = new ReflectionClass($this->bot);
     $this->setReflectedObject($this->bot);
 }
All Usage Examples Of seregazhuk\PinterestBot\Factories\PinterestBot::create