Skip to content

Source calculation issues when running CLI commands from code #84

@legatoloco

Description

@legatoloco

APIs like listing tasks are only available through the CLI commands (ScheduleListCommand.php)
ScheduleListCommand currently uses a hardcoded Configuration / FileSystem implementation in the generated crunzcontainer which always returns the current working directory.
When trying to invoke these methods from within an application (running in apache), the source will also resolve to getcwd.

Solution: Provide a way to specify the configuration parser when creating the application
$application = new Application('Crunz', 'v3.4.0');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions