Replace DIR or FILE to you folder
git filter-branch --index-filter 'git rm --cached -qr --ignore-unmatch -- . && git reset -q $GIT_COMMIT -- DIR DIR FILE' --prune-empty -- --all| <?php | |
| use Dframe\Router\Response; | |
| set_time_limit(0); | |
| ini_set('max_execution_time', 0); | |
| date_default_timezone_set('Europe/Warsaw'); | |
| require_once dirname(__DIR__) . '/../../../vendor/autoload.php'; | |
| require_once dirname(__DIR__) . '/../../../web/config.php'; |
| <?php | |
| try { | |
| $client = new Client(); | |
| $response = $client->request('GET', 'NAME_MICROSERVICE:80/SLUG'); | |
| $body = \GuzzleHttp\json_decode($response->getBody(), true); | |
| $statusCode = $response->getStatusCode(); | |
| } catch (GuzzleException $e) { | |
| return Response::renderJSON(['code' => 500, 'message' => $e->getMessage()])->status(500); | |
| } |
Replace DIR or FILE to you folder
git filter-branch --index-filter 'git rm --cached -qr --ignore-unmatch -- . && git reset -q $GIT_COMMIT -- DIR DIR FILE' --prune-empty -- --all| # This is a sample build configuration for PHP. | |
| # Check our guides at https://confluence.atlassian.com/x/e8YWN for more examples. | |
| # Only use spaces to indent your .yml configuration. | |
| # ----- | |
| # You can specify a custom docker image from Docker Hub as your build environment. | |
| image: php:7.3 | |
| pipelines: | |
| tags: # add the 'tags' section | |
| v*: # specify the tag |
| <?php | |
| $page = (!isset($_GET['p']) or is_int($_GET['p']) != true) ? '1' : $_GET['p']; | |
| $limit = '50'; | |
| $start = ($page - 1) * $limit; | |
| // Example implement | |
| //$sql = 'SELECT * FROM suppliers order by name ASC LIMIT ' . $start . ', ' . $limit; | |
| <?php | |
| /** | |
| * DframeFramework | |
| * Copyright (c) Sławomir Kaleta. | |
| * | |
| * @license https://github.com/dframe/dframe/blob/master/LICENCE (MIT) | |
| */ | |
| namespace Core; |
| <?php | |
| class Search | |
| { | |
| /** | |
| * @var array | |
| */ | |
| public $search = []; |
| <?php | |
| namespace Model; | |
| /** | |
| * Class Database | |
| * Klasa rozbudowuje transakcje o lvl | |
| * | |
| * @package Model | |
| */ | |
| class Database extends \Dframe\Database\Database |
| <?php | |
| /** | |
| * PSR-3 Adapter for Dframe/activityLog | |
| */ | |
| namespace Dframe\ActivityLog\Helper; | |
| use Dframe\ActivityLog\Activity; | |
| use Psr\Log\AbstractLogger; |