in2code-de / in2publish_core

in2publish Community Version
https://www.in2code.de/produkte/content-publisher/
GNU General Public License v3.0
40 stars 23 forks source link

Spyc is not loaded correctly (ext_tables.php) if Spyc isn't installed via composer #23

Closed AndreasA closed 7 years ago

AndreasA commented 7 years ago

If \Spyc is not installed via composer or doesn't exist during ext_tables.php loading, it isn't loaded correctly as:

   /**
             * Manually load Spy YAML parser
             */
            if (!class_exists('\Spyc')) {
                require_once($extensionPath . '/Resources/Private/Spyc/Spyc.php');
            }

the path doesn't exist in that form.

The correct path would be:

   /**
             * Manually load Spy YAML parser
             */
            if (!class_exists('\Spyc')) {
                          require_once($extensionPath . 'Resources/Private/Libraries/Spyc/Spyc.php');
            }