Quellcode durchsuchen

Minor fixes and config tweaks

Jordi Boggiano vor 6 Jahren
Ursprung
Commit
b014b7f562

+ 8 - 3
app/config/config.yml

@@ -49,7 +49,10 @@ doctrine:
         password: '%database_password%'
         charset:  utf8mb4
         # See https://github.com/sonata-project/SonataAdminBundle/issues/3342
-        server_version: 5.6
+        server_version: 8.0
+        options:
+            # PDO::ATTR_TIMEOUT
+            2: 1.3
     orm:
         auto_generate_proxy_classes: '%kernel.debug%'
         auto_mapping: true
@@ -61,13 +64,15 @@ snc_redis:
             alias: default
             dsn: '%redis_dsn%'
             options:
-                profile: 2.8
+                profile: 3.2
+                connection_timeout: 1
         cache:
             type: predis
             alias: cache
             dsn: '%redis_dsn%'
             options:
-                profile: 2.8
+                profile: 3.2
+                connection_timeout: 1
     session:
         client: cache
         prefix: 'sess:'

+ 11 - 1
src/Packagist/WebBundle/Command/SymlinkMetadataMirrorCommand.php

@@ -62,12 +62,22 @@ class SymlinkMetadataMirrorCommand extends Command
         ];
 
         foreach ($sources as $source) {
+            if (!file_exists($source)) {
+                if ($verbose) {
+                    $output->writeln('Can not link to '.$source.' as it is missing');
+                }
+                continue;
+            }
+
             $target = $this->webDir.'/'.basename($source);
             if (file_exists($target) && is_link($target) && readlink($target) === $source) {
                 continue;
             }
+            if ($verbose) {
+                $output->writeln('Linking '.$target.' => '.$source);
+            }
             if (!symlink($source, $target)) {
-                echo 'Warning: Could not symlink '.$source.' into the web dir ('.$target.')';
+                $output->writeln('Warning: Could not symlink '.$source.' into the web dir ('.$target.')');
                 throw new \RuntimeException('Could not symlink '.$source.' into the web dir ('.$target.')');
             }
         }