I am using the Symfony’s Filesystem component, specifically chmod function: But on the terminal the permissions are weird: It is supposed to look like this: Am I doing something wrong? I’m using the 5.2.4 version. Answer public function chmod($files, int $mode, int $umask = 0000, bool $recursive = false) The second param of the function is the number, you are
Tag: symfony-filesystem
Why I can’t get Symfony Finder like a service?
I use Symfony Standard Edition and try to get Symfony Finder component like a service, but not found it. To use the Finder, I need to create it manually like: Why I can’t get it from service container? Is it was wrong? P.S. The Symfony Filesystem component exists in service container and available by name filesystem. Answer The Symfony’s Finder