-
Notifications
You must be signed in to change notification settings - Fork 0
Still problem with file system. #6
Comments
I messed up the commit issue reference, the above commit is referring to issue #7, so we continue there. |
@alextech the package by default uses the In the case that write permissions are not enabled then you can use let me know if that solves your issue Descriptionpublic void \Omega\FaultManager\Fault::setCompilePath ( string $path ) |
also please note that Actually now that I tested it, it will break your application if you use namespaces because it will create a path
I probably have to add a check for that or implement namespaces. |
has no effect. New classes are still created in vendor. |
Let me know where you place the above code as I just checked and it works on my side. Remember, |
Sorry, I forgot my unit tests, do not go through entire pipeline initialization code, where I put that function. I will have to add this to application configuration service in a way that it is applied in all places on my end. |
You can change your path everywhere and anytime you need. For instance: Fault::setCompilePath('/my/path');
Fault::exception('MyCustomException'); // compiled file will be under /my/path
Fault::setCompilePath('/my/other/path');
Fault::exception('MyOtherCustomException'); // compiled file will be under /my/other/path
// etc... For unit testing you can have something like that: /**
* @before
*/
protected function setTestPath(): void
{
Fault::setCompilePath('/my/testing/path');
} |
In addition to the above example, my mistake is that I forgot to append front-slash at the end of the path so I probably need to have a check for that and in a case is missing to append a trailing front-slash to the path. |
Attempted usage:
_compiled
underomegad-biz
. That is a problem, because hosts will not have write permissions there. Write permissions will be often given manually to designated directory, such asdata
at top level.The text was updated successfully, but these errors were encountered: