src/RawPHP/RawApplication/Application.php
protected function initDefaults()
    {
        $this->bindShared( 'RawPHP\RawDispatcher\Contract\IDispatcher', function ()
        {
            return new Dispatcher();
        }
        );

        $this->bindShared( 'RawPHP\RawFileSystem\Contract\IFileSystem', function ()
        {
            return new FileSystem();
        }
        );

        $this->alias( 'RawPHP\RawDispatcher\Contract\IDispatcher', 'dispatcher' );
        $this->alias( 'RawPHP\RawFileSystem\Contract\IFileSystem', 'files' );
    }
protected function initDefaults()
    {
        $this->bindShared( 'RawPHP\RawDispatcher\Contract\IDispatcher', function ()
        {
            return new Dispatcher();
        }
        );

        $this->bindShared( 'RawPHP\RawFileSystem\Contract\IFileSystem', function ()
        {
            return new FileSystem();
        }
        );

        $this->alias( 'RawPHP\RawDispatcher\Contract\IDispatcher', 'dispatcher' );
        $this->alias( 'RawPHP\RawFileSystem\Contract\IFileSystem', 'files' );
    }
protected function initDefaults ( ) { $ this -> bindShared ( 'RawPHP\RawDispatcher\Contract\IDispatcher' , function ( ) { return new Dispatcher ( ) ; } ) ; $ this -> bindShared ( 'RawPHP\RawFileSystem\Contract\IFileSystem' , function ( ) { return new FileSystem ( ) ; } ) ; $ this -> alias ( 'RawPHP\RawDispatcher\Contract\IDispatcher' , 'dispatcher' ) ; $ this -> alias ( 'RawPHP\RawFileSystem\Contract\IFileSystem' , 'files' ) ; }
Initialise default services.
Initialise default services .