protected function loadCommands(PackageInterface $package)
    {
        if (!$package->getCommands() || APP_CONTEXT !== 'console') {
            return $this;
        }

        $commandLoader = \Parable\DI\Container::create(\Parable\Framework\Loader\CommandLoader::class);
        $commandLoader->load($package->getCommands());
        return $this;
    }
protected function loadCommands(PackageInterface $package)
    {
        if (!$package->getCommands() || APP_CONTEXT !== 'console') {
            return $this;
        }

        $commandLoader = \Parable\DI\Container::create(\Parable\Framework\Loader\CommandLoader::class);
        $commandLoader->load($package->getCommands());
        return $this;
    }
protected function loadCommands ( PackageInterface $ package ) { if ( ! $ package -> getCommands ( ) || APP_CONTEXT !== 'console' ) { return $ this ; } $ commandLoader = \ Parable \ DI \ Container :: create ( \ Parable \ Framework \ Loader \ CommandLoader :: class ) ; $ commandLoader -> load ( $ package -> getCommands ( ) ) ; return $ this ; }
Load all Commands from package.

@param PackageInterface $package

@return $this
@throws \Parable\DI\Exception
Load all Commands from package .