You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a path like test/dir/db, it will make dbs like dbusers, dbcategories, which is not the responsibility of the mapper to fix the issue
The point is whether these small things should be fixed in (it is a bug) or out of the framework
TLDR;
I'm simply saying, it's not a bug, and F3 is functioning as intended.
Longer Version:
I understand what you're saying, and you're right, it doesn't take much to make the code a little more developer friendly, however, the opinionated approach by F3 is clearly stated in the documentation, and we the developer MUST add the trailing slash any time we're working with the framework.
During the development stage of your app, when you realize you're Jig code is trying to access dbusers you need to correct the path to match what is expected by F3.
I'm working on a project with Jig now, and my DB reference is: $f3->set('DB', new \DB\Jig(__DIR__ . '/jig/'));
Calling the mapper is as simple as: $mapper = new \DB\Mapper\Jig($f3->get('DB'), 'user.json');
... and I'm not having any issues.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.