src/Subscriber.php
/**
     * @param string|callable $handler
     * @return callable
     * @throws \Illuminate\Contracts\Container\BindingResolutionException
     */
@param string|callable $handler
@return callable
@throws \Illuminate\Contracts\Container\BindingResolutionException
@param string|callable $handler @return callable @throws \ Illuminate \ Contracts \ Container \ BindingResolutionException
protected function parseHandler($handler)
    {
        if (is_string($handler)) {
            $parsed = Str::parseCallback($handler);
            $parsed[0] = $this->app->make($parsed[0]);
            return $parsed;
        } elseif (is_callable($handler)) {
            return $handler;
        }
        throw new InvalidArgumentException('Handler argument must be either a string or callable.');
    }
protected function parseHandler ( $ handler ) { if ( is_string ( $ handler ) ) { $ parsed = Str :: parseCallback ( $ handler ) ; $ parsed [ 0 ] = $ this -> app -> make ( $ parsed [ 0 ] ) ; return $ parsed ; } elseif ( is_callable ( $ handler ) ) { return $ handler ; } throw new InvalidArgumentException ( 'Handler argument must be either a string or callable.' ) ; }
@param string|callable $handler
 @return callable
 @throws \Illuminate\Contracts\Container\BindingResolutionException
@param string|callable $handler @return callable @throws \ Illuminate \ Contracts \ Container \ BindingResolutionException