Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(command): scheduler:export #198

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

feat(command): scheduler:export #198

wants to merge 5 commits into from

Conversation

Guikingone
Copy link
Owner

@Guikingone Guikingone commented Oct 14, 2021

Q A
PHP version? 8.0
Bundle version? >= 0.9.0
Symfony version? >= 5.4
New feature? yes
Bug fix? yes

@Guikingone Guikingone self-assigned this Oct 14, 2021
@Guikingone Guikingone linked an issue Oct 14, 2021 that may be closed by this pull request
@Guikingone Guikingone changed the title feat(core): started feat(command): scheduler:export Oct 14, 2021
@Guikingone Guikingone added this to the 0.8.0 milestone Oct 14, 2021
@Guikingone Guikingone modified the milestones: 0.8.0, 0.9.0 Dec 6, 2021
Comment on lines +29 to +33
ExporterRegistryInterface $exporterRegistry,
SchedulerInterface $scheduler
) {
$this->exporterRegistry = $exporterRegistry;
$this->scheduler = $scheduler;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ExporterRegistryInterface $exporterRegistry,
SchedulerInterface $scheduler
) {
$this->exporterRegistry = $exporterRegistry;
$this->scheduler = $scheduler;
private ExporterRegistryInterface $exporterRegistry,
private SchedulerInterface $scheduler
) {

Comment on lines +23 to +24
private ExporterRegistryInterface $exporterRegistry;
private SchedulerInterface $scheduler;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
private ExporterRegistryInterface $exporterRegistry;
private SchedulerInterface $scheduler;

*/
abstract class AbstractExporter implements ExporterInterface
{
private string $projectDir;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
private string $projectDir;

Comment on lines +14 to +17
public function __construct(string $projectDir)
{
$this->projectDir = $projectDir;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public function __construct(string $projectDir)
{
$this->projectDir = $projectDir;
}
public function __construct(private string $projectDir)
{
}

Comment on lines +20 to +23
/**
* @var ExporterInterface[]
*/
private iterable $exporterList;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/**
* @var ExporterInterface[]
*/
private iterable $exporterList;

Comment on lines +28 to +31
public function __construct(iterable $exporterList)
{
$this->exporterList = $exporterList;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public function __construct(iterable $exporterList)
{
$this->exporterList = $exporterList;
}
public function __construct(private iterable $exporterList)
{
}

@Guikingone Guikingone modified the milestones: 0.9.0, 0.10.0 Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(command): add a command for crontab file generation
2 participants