コード例 #1
0
ファイル: Routes.php プロジェクト: rocketphp/tweetfind
 /**
  * Get Extract
  *
  * @url    extract
  * @return string
  */
 public function getExtract()
 {
     $result = $this->_tweetfind->extract();
     $response = ['extracted' => $result];
     return $response;
 }
コード例 #2
0
ファイル: index.php プロジェクト: rocketphp/tweetfind
<?php

error_reporting(E_ERROR | E_WARNING | E_PARSE);
// $env = getenv('APPLICATION_ENV');
// error_reporting(E_ALL);
ini_set('display_errors', 'On');
ini_set('xdebug.var_display_max_depth', 15);
ini_set('xdebug.var_display_max_children', 256);
ini_set('xdebug.var_display_max_data', 1024);
set_time_limit(60 * 5);
$autoload = dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
require $autoload;
use TweetFind\TweetFind;
/** 
 * TweetFind
 */
$app = new TweetFind();
$result = $app->startRestService();
echo $app->view('index');
コード例 #3
0
ファイル: TweetFind.php プロジェクト: rocketphp/tweetfind
 public function testStartRestService()
 {
     $tweetfind = new TweetFind();
     $result = $tweetfind->startRestService();
 }