code: public function addAppDependencies()
      {
          /**
           * @var \Pimple\Container $container
           */
          $container = $this->getContainer();
          $container['person'] = $container->protect(function ($name) {
              return 'Person name: ' . $name;
          });
  
          return $this;
      }
docs: Sample adding DI
  @return static