Use self references and fix class naming
This commit is contained in:
parent
8da8805f5d
commit
819677c902
|
@ -50,7 +50,7 @@ class Application extends Container
|
|||
$this->instance(Container::class, $this);
|
||||
$this->instance(Application::class, $this);
|
||||
$this->instance(IlluminateContainer::class, $this);
|
||||
$this->bind(ContainerInterface::class, Application::class);
|
||||
$this->bind(ContainerInterface::class, self::class);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -40,7 +40,7 @@ class LogEntry extends BaseModel
|
|||
*/
|
||||
public static function filter($keyword = null)
|
||||
{
|
||||
$query = LogEntry::query()
|
||||
$query = self::query()
|
||||
->select()
|
||||
->orderByDesc('created_at')
|
||||
->orderByDesc('id')
|
||||
|
|
|
@ -4,9 +4,9 @@ namespace Engelsystem\Test\Unit\Container;
|
|||
|
||||
use Engelsystem\Container\ServiceProvider;
|
||||
use Engelsystem\Test\Unit\Container\Stub\ServiceProviderImplementation;
|
||||
use Engelsystem\Test\Unit\ServiceProviderTest;
|
||||
use Engelsystem\Test\Unit\ServiceProviderTest as ServiceProviderTestCase;
|
||||
|
||||
class ConfigServiceProviderTest extends ServiceProviderTest
|
||||
class ServiceProviderTest extends ServiceProviderTestCase
|
||||
{
|
||||
/**
|
||||
* @covers \Engelsystem\Container\ServiceProvider::__construct
|
||||
|
|
Loading…
Reference in New Issue