code: public function addDumpableDefinition(DumpableInterface $dumpableDefinition)
      {
          $id = $dumpableDefinition->getIdentifier();
          if ($id === null) {
              throw new CompilerException('Anonymous instances cannot be directly added to a container.');
          }
          $this->dumpableDefinitions[$id] = $dumpableDefinition;
          unset($this->definitions[$id]);
      }
docs: Adds a dumpable definition to the list of definitions managed by this compiler.
  Note: a "dumpable" definition is a definition represented in Yaco internal format.
  
  @param DumpableInterface $dumpableDefinition