for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Port\Loader;
use App\Port\Loader\Loaders\AliasesLoaderTrait;
use App\Port\Loader\Loaders\ConfigsLoaderTrait;
use App\Port\Loader\Loaders\ConsolesLoaderTrait;
use App\Port\Loader\Loaders\FactoriesLoaderTrait;
use App\Port\Loader\Loaders\MigrationsLoaderTrait;
use App\Port\Loader\Loaders\ProvidersLoaderTrait;
use App\Port\Loader\Loaders\ViewsLoaderTrait;
/**
* Class AutoLoaderTrait.
*
* @author Mahmoud Zalt <[email protected]>
*/
trait AutoLoaderTrait
{
use ConfigsLoaderTrait;
use MigrationsLoaderTrait;
use ViewsLoaderTrait;
use ProvidersLoaderTrait;
use FactoriesLoaderTrait;
use ConsolesLoaderTrait;
use AliasesLoaderTrait;
public function bootLoaders()
$this->runConfigsAutoLoader();
$this->runProvidersAutoLoader();
$this->runMigrationsAutoLoader();
$this->runViewsAutoLoader();
$this->runConsolesAutoLoader();
}
public function registerLoaders()
$this->loadPortInternalAliases($this->aliases);
aliases
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
class MyClass { } $x = new MyClass(); $x->foo = true;
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:
class MyClass { public $foo; } $x = new MyClass(); $x->foo = true;
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: