mattstauffer / Torch

Examples of using each Illuminate component in non-Laravel applications
MIT License
1.85k stars 210 forks source link

Update all components for 6.0 #106

Closed mattstauffer closed 3 years ago

mattstauffer commented 5 years ago

You can see the current list in the README but I'm encapsulating this here for the purpose of asking for help.

Here's what it takes to "move a component over":

  1. Find the correct Issue (see those linked in the comments below) for the given component. 1. Leave a comment in that issue showing you'll be pulling this task.
  2. Update the composer.json references for this component to use the Illuminate component "~6.0"
  3. Try to composer install; see if anything breaks and whether you also need to update the versions of any other dependencies, or add or remove any others
  4. Once composer install works, spin up the PHP server (php -S localhost:8080) and then visit each route that's defined in that component's index.php (e.g. http://localhost:8080/ for the root of the component you're testing) and test whether everything works as expected
  5. If it all works, PR it! If you get stuck, PR where you are with notes about what got stuck
asheliahut commented 5 years ago

Just putting this here to help with your effort you should just use this as your "app" for the use of some of these that need it now. I finally just got updated to 6.2 for Redis + Queue

<?php

declare(strict_types=1);

namespace MocksVille;

use Closure;
use Illuminate\Contracts\Foundation\Application;

class MockIlluminateApp implements Application
{

    public function loadDeferredProviders () {}

    public function version() {}

    public function basePath($path = '') {}

    public function bootstrapPath($path = '') {}

    public function configPath($path = '') {}

    public function databasePath($path = '') {}

    public function environmentPath(){}

    public function resourcePath($path = '') {}

    public function storagePath(){}

    public function environment(...$environments) {}

    public function runningInConsole(){}

    public function runningUnitTests(){}

    public function isDownForMaintenance(){}

    public function registerConfiguredProviders(){}

    public function register($provider, $force = false) {}

    public function registerDeferredProvider($provider, $service = null) {}

    public function resolveProvider($provider) {}

    public function boot(){}

    public function booting($callback) {}

    public function booted($callback) {}

    public function bootstrapWith(array $bootstrappers) {}

    public function configurationIsCached(){}

    public function detectEnvironment(Closure $callback) {}

    public function environmentFile(){}

    public function environmentFilePath(){}

    public function getCachedConfigPath(){}

    public function getCachedServicesPath(){}

    public function getCachedPackagesPath(){}

    public function getCachedRoutesPath(){}

    public function getLocale(){}

    public function getNamespace(){}

    public function getProviders($provider) {}

    public function hasBeenBootstrapped(){}

    public function loadEnvironmentFrom($file) {}

    public function routesAreCached(){}

    public function setLocale($locale) {}

    public function shouldSkipMiddleware(){}

    public function terminate(){}

    public function bound($abstract) {}

    public function alias($abstract, $alias) {}

    public function tag($abstracts, $tags) {}

    public function tagged($tag) {}

    public function bind($abstract, $concrete = null, $shared = false) {}

    public function bindIf($abstract, $concrete = null, $shared = false) {}

    public function singleton($abstract, $concrete = null) {}

    public function singletonIf($abstract, $concrete = null) {}

    public function extend($abstract, Closure $closure) {}

    public function instance($abstract, $instance) {}

    public function addContextualBinding($concrete, $abstract, $implementation) {}

    public function when($concrete) {}

    public function factory($abstract) {}

    public function flush(){}

    public function make($abstract, array $parameters = []) {}

    public function call($callback, array $parameters = [], $defaultMethod = null) {}

    public function resolved($abstract) {}

    public function resolving($abstract, Closure $callback = null) {}

    public function afterResolving($abstract, Closure $callback = null) {}

    public function get($id) {}

    public function has($id) {}
}