Appearance
PlatformFilesPublisher
php
final readonly class Zairakai\LaravelDevTools\Services\PlatformFilesPublisherPublishes the files of the platform from the stubs of the package into the project: the GitLab CI pipeline and the governance files (CONTRIBUTING.md, CODE_OF_CONDUCT.md, SECURITY.md).
Reached through ConfigStubPublisher, which keeps the groups and the keys.
Source: src/Services/PlatformFilesPublisher.php
Methods
__construct()
php
public function __construct(PublishOutput $output, StubWriter $writer)publishGitlabCi()
php
public function publishGitlabCi(string $vendorPath, string $basePath, bool $force): boolPublish the GitLab CI pipeline stub (.gitlab-ci.yml) into the project root.
publishGitlabCiFullstack()
php
public function publishGitlabCiFullstack(string $vendorPath, string $basePath, bool $force): boolPublish the full-stack GitLab CI pipeline stub (.gitlab-ci.yml) into the project root.
publishGovernanceFiles()
php
public function publishGovernanceFiles(string $vendorPath, string $basePath, bool $force): boolPublish governance files (CONTRIBUTING.md, CODE_OF_CONDUCT.md, SECURITY.md) to project root.
wantsFullstack()
php
public function wantsFullstack(string $basePath, bool $asked = false): boolThe CI file with PHP and JS: asked for, or the project uses js-dev-tools.