Skip to content

Commit

Permalink
Fixed octal values in semantic config for Symfony 6
Browse files Browse the repository at this point in the history
  • Loading branch information
alongosz committed Nov 6, 2024
1 parent f8f5d6e commit 782f9a7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ public function addSemanticConfig(NodeBuilder $nodeBuilder)
->info('Permissions applied by the Local flysystem adapter when creating content files and directories in storage.')
->children()
->scalarNode('files')
->defaultValue('0644')
->defaultValue(0644)
->end()
->scalarNode('directories')
->defaultValue('0755')
->defaultValue(0755)
->end()
->end()
->end()
Expand Down
4 changes: 2 additions & 2 deletions src/bundle/Core/Resources/config/default_settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ parameters:
ibexa.site_access.config.default.io.url_prefix: "$var_dir$/$storage_dir$"
ibexa.site_access.config.default.io.legacy_url_prefix: "$var_dir$/$storage_dir$"
ibexa.site_access.config.default.io.root_dir: "%webroot_dir%/$var_dir$/$storage_dir$"
ibexa.site_access.config.default.io.permissions.files: 0644
ibexa.site_access.config.default.io.permissions.directories: 0755
ibexa.site_access.config.default.io.permissions.files: 0o644
ibexa.site_access.config.default.io.permissions.directories: 0o755
# Blacklist against storing certain file types, validation will be refused for these
ibexa.site_access.config.default.io.file_storage.file_type_blacklist:
- php
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
*/
final class SiteAccessAwareVisibilityConverter extends BaseVisibilityConverter
{
public const SITE_CONFIG_IO_FILE_PERMISSIONS_PARAM_NAME = 'io.permissions.files';
public const SITE_CONFIG_IO_DIR_PERMISSIONS_PARAM_NAME = 'io.permissions.directories';
public const string SITE_CONFIG_IO_FILE_PERMISSIONS_PARAM_NAME = 'io.permissions.files';
public const string SITE_CONFIG_IO_DIR_PERMISSIONS_PARAM_NAME = 'io.permissions.directories';

private ConfigResolverInterface $configResolver;

Expand Down
4 changes: 2 additions & 2 deletions src/lib/Resources/settings/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ parameters:
ibexa.io.binary_file.storage.prefix: original
ibexa.site_access.list: [test]
ibexa.site_access.config.default.anonymous_user_id: 10
ibexa.site_access.config.default.io.permissions.files: 0644
ibexa.site_access.config.default.io.permissions.directories: 0755
ibexa.site_access.config.default.io.permissions.files: 0o644
ibexa.site_access.config.default.io.permissions.directories: 0o755

services:
ibexa.api.persistence_handler:
Expand Down

0 comments on commit 782f9a7

Please sign in to comment.