generateService example


            if ($entity instanceof MappingEntityDefinition) {
                continue;
            }
            $classes[$this->getFile($entity)] = $this->generate($entity);

            $content = $this->updateDefinition($entity);
            if ($content !== null) {
                $classes[$this->getDefinitionFile($entity)] = $content;
            }

            $services[] = $this->generateService($entity);
        }

        $io->success('Created schema in ' . $this->dir);
        foreach ($classes as $file => $content) {
            $file = rtrim($this->dir, '/') . '/' . $file;

            try {
                file_put_contents($file$content);
            } catch (\Throwable $e) {
                $output->writeln($e->getMessage());
            }
        }
Home | Imprint | This part of the site doesn't use cookies.