This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('BASE_PATH', '/var/log/apache2'); | |
define('MAX_LINES', 256); | |
define('RECEIVER', ''); | |
function generateAccessLogs(array $files) | |
{ | |
$message = ''; | |
foreach ($files as $file) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Api\Todo; | |
use PSX\Framework\Controller\SchemaApiAbstract; | |
use PSX\Http\Environment\HttpContextInterface; | |
/** | |
* @PathParam(name="todo_id", type="integer") | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Api\Todo; | |
use PSX\Framework\Controller\SchemaApiAbstract; | |
use PSX\Http\Environment\HttpContextInterface; | |
class Collection extends SchemaApiAbstract | |
{ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @var \Fusio\Engine\ConnectorInterface $connector | |
* @var \Fusio\Engine\ContextInterface $context | |
* @var \Fusio\Engine\RequestInterface $request | |
* @var \Fusio\Engine\Response\FactoryInterface $response | |
* @var \Fusio\Engine\ProcessorInterface $processor | |
* @var \Psr\Log\LoggerInterface $logger | |
* @var \Psr\SimpleCache\CacheInterface $cache | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @var \Fusio\Engine\ConnectorInterface $connector | |
* @var \Fusio\Engine\ContextInterface $context | |
* @var \Fusio\Engine\RequestInterface $request | |
* @var \Fusio\Engine\Response\FactoryInterface $response | |
* @var \Fusio\Engine\ProcessorInterface $processor | |
* @var \Psr\Log\LoggerInterface $logger | |
* @var \Psr\SimpleCache\CacheInterface $cache | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"io/ioutil" | |
"log" | |
"net/http" | |
"regexp" | |
"github.com/elazarl/goproxy" | |
yaml "gopkg.in/yaml.v2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto/md5" | |
"crypto/sha1" | |
"crypto/sha256" | |
"fmt" | |
"hash" | |
"io" | |
"log" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use \Illuminate\Database\Capsule\Manager as Capsule; | |
$connection = $connector->getConnection('eloquent'); | |
$actions = Capsule::table('fusio_action')->where('id', '>', 2)->get(); | |
return $response->build(200, [], [ | |
'actions' => $actions, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Action; | |
use Doctrine\ORM\EntityManager; | |
use Fusio\Engine\ActionAbstract; | |
use Fusio\Engine\ContextInterface; | |
use Fusio\Engine\ParametersInterface; | |
use Fusio\Engine\RequestInterface; | |
use JMS\Serializer\ArrayTransformerInterface; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"definitions": { | |
"my_object": { | |
"type": "object", | |
"properties": { | |
"firstName": { | |
"type": "string" | |
}, | |
"parent": { | |
"type": "object", |
OlderNewer