protected function registerFlash() {
        $container = $this->container;
        $this->container->set('flash', function() use ($container) {
            return new Flash($container->get('session'));
        });
    }
protected function registerFlash() {
        $container = $this->container;
        $this->container->set('flash', function() use ($container) {
            return new Flash($container->get('session'));
        });
    }
protected function registerFlash ( ) { $ container = $ this -> container ; $ this -> container -> set ( 'flash' , function ( ) use ( $ container ) { return new Flash ( $ container -> get ( 'session' ) ) ; } ) ; }
Create and add session flash object to container

@return void
Create and add session flash object to container