original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Load all Commands from package.
  
  @param PackageInterface $package
  
  @return $this
  @throws \Parable\DI\Exception
docstring_tokens: Load all Commands from package .