Skip to content

Conversation

@timint
Copy link

@timint timint commented Aug 24, 2021

No description provided.

@alexanderwiden95
Copy link
Collaborator

Since the structure still is relative to the current working directory we don't really see how this is making any difference with or without __DIR__. Could you elaborate?

@timint
Copy link
Author

timint commented Sep 6, 2021

Yeah, in CLI it will try to access the folder of the command prompt.
I used composer and executed the CLI command:

php example\yadayada.php and it aborted with a fatal error.

I don't see a purpose why it must locked to a certain CWD.

Do you see a problem with making CWD irrelevant?

@alexanderwiden95
Copy link
Collaborator

There is no problem with adding __DIR__, we just didn't expect anyone to use this from an CLI. We'll include this in the example files later on

@timint
Copy link
Author

timint commented Sep 7, 2021

Wonderful to hear 👍.
CLI is an excellent way for testing the examples. I made so much use of it.

The next thing is adding PHP_EOL and strip_tags to the output. I will do a recommendation in another ticket for that.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants