This file contains hidden or 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 | |
| // Get the list of files of the main directory and remove the dots | |
| $files = array_diff(scandir(__DIR__ . '/src/'), array('..', '.')); | |
| // Add the helpers file | |
| $files[] = 'helpers/helpers.php'; | |
| return $files; |
This file contains hidden or 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
| { | |
| "name": "application/project", | |
| "description": "This is my root project.", | |
| "require": { | |
| "php": "^7.2", | |
| "ext-json": "*", | |
| "symfony/http-client": "5.*", | |
| "symfony/console": "5.*" | |
| }, | |
| "autoload": { |
This file contains hidden or 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 Illuminate\Support; | |
| use Closure; | |
| use Illuminate\Contracts\Container\Container; | |
| use InvalidArgumentException; | |
| abstract class Manager | |
| { |
This file contains hidden or 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\Http\Controllers; | |
| use App\Package; | |
| use App\Managers\TransportManager; | |
| class DeliveryController extends Controller | |
| { | |
| /** |
This file contains hidden or 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\Managers; | |
| use App\Transport\Car\Car; | |
| use App\Transport\Car\CarWheels; | |
| use App\Transport\Car\FuelEngine; | |
| use App\Transport\Car\Chassis; | |
| use App\Transport\Bicycle\Bicycle; | |
| use App\Transport\Bicycle\BicycleWheel; |
This file contains hidden or 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\Http\Helpers; | |
| use Closure; | |
| use Illuminate\Http\Request; | |
| use Illuminate\Support\Facades\Cache; | |
| trait CachesResponses | |
| { |
This file contains hidden or 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\Http\Middleware; | |
| use Closure; | |
| use Illuminate\Http\Request; | |
| use Illuminate\Support\Carbon; | |
| use Illuminate\Cache\CacheManager as Cache; | |
| use Illuminate\Routing\Exceptions\InvalidSignatureException; | |
| use Illuminate\Routing\Middleware\ValidateSignature as BaseMiddleware; |
This file contains hidden or 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\Http\Helpers; | |
| use Illuminate\Support\Str; | |
| use Illuminate\Http\Request; | |
| use Illuminate\Http\Response; | |
| use Illuminate\Cache\RateLimiter; | |
| use Illuminate\Support\Facades\Lang; | |
| use Illuminate\Validation\ValidationException; |
This file contains hidden or 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\Helpers; | |
| use Illuminate\Support\Str; | |
| use Illuminate\Support\HigherOrderTapProxy; | |
| class InfiniteHigherOrderTapProxy extends HigherOrderTapProxy | |
| { | |
| /** |