ErrorException: file_put_contents(spiralApplication/data/config/loadmap.php): failed to open stream: No such file or directory in spiralCore/helpers/file.php at line 66
spiralCore/helpers/file.php
56     * Write file.
57     *
58     * @static
59     * @param string $filename
60     * @param string $content
61     * @param bool $append
62     * @return bool
63     */
64    static public function write($filename, $content, $append = false)
65    {
66        return file_put_contents($filename, $content, $append ? FILE_APPEND | LOCK_EX : LOCK_EX);
67    }
68
69    /**
70     * Read file
71     *
72     * @static
73     * @param string $filename
74     * @return bool
75     */
76    static public function read($filename)
spiralCore/helpers/utils.php
198     *
199     * @static
200     * @param string section
201     * @param array $data
202     * @param bool $formatting
203     * @param int $tabulation
204     * @return string
205     */
206    static public function saveConfig($section, array $data, $formatting = spiralDebug)
207    {
208        return file::write(spiralData . 'config' . dSeparator . $section . ext, "<?php return " . self::createArray($data, $formatting) . ";");
209    }
210}
spiralCore/loader.php
295            spiralCore::addComponent($name, new $name());
296            spiralDebug && spiralCore::debugMessage("Class '$name' was aliased into the core as component.");
297        }
298
299        self::$loadmap[$name] = $result;
300
301        /**
302         * We can update loadmap each time it was changed,
303         * it makes first runs really slow, but after all calls will be forced.
304         */
305        utils::saveConfig('loadmap', self::$loadmap, false);
306        spiralDebug && spiralCore::debugMessage("Loadmap was updated and successfully saved at disc.");
307
308        return;
309    }
310}
spiralCore/helpers/utils.php
198     *
199     * @static
200     * @param string section
201     * @param array $data
202     * @param bool $formatting
203     * @param int $tabulation
204     * @return string
205     */
206    static public function saveConfig($section, array $data, $formatting = spiralDebug)
207    {
208        return file::write(spiralData . 'config' . dSeparator . $section . ext, "<?php return " . self::createArray($data, $formatting) . ";");
209    }
210}
spiralCore/loader.php
295            spiralCore::addComponent($name, new $name());
296            spiralDebug && spiralCore::debugMessage("Class '$name' was aliased into the core as component.");
297        }
298
299        self::$loadmap[$name] = $result;
300
301        /**
302         * We can update loadmap each time it was changed,
303         * it makes first runs really slow, but after all calls will be forced.
304         */
305        utils::saveConfig('loadmap', self::$loadmap, false);
306        spiralDebug && spiralCore::debugMessage("Loadmap was updated and successfully saved at disc.");
307
308        return;
309    }
310}
spiralRoot/webroot/index.php
119 */
120foreach (spiralCore::$globalConfig['spiral']['systemHeaders'] as $header) {
121    header($header, true);
122}
123
124/**
125 * Some classes (mostly components) should be preloaded,
126 * to force events, and be available from the box.
127 */
128foreach (spiralCore::$globalConfig['spiral']['loadClasses'] as $class) {
129    spiralLoader::loadClass($class);
130}
131
132/**
133 * Nothing should be sent to user if there is not spiralDebug.
134 */
135ob_start();
136
137/**
138 * Calling parent action.
139 */
System messages
Route 'spiralCore/helpers/' was successfully added into loader.
Route 'spiralCore/components/' was successfully added into loader.
Route 'spiralCore/extensions/' was successfully added into loader.
Route 'spiralCore/' was successfully added into loader.
Route 'spiralApplication/' was successfully added into loader.
Route 'spiralApplication/classes/' was successfully added into loader.
Declaration file 'spiralCore/components/i18n.php' was successfully loaded for class 'i18n' (no loadmap).
Declaration file 'spiralCore/helpers/utils.php' was successfully loaded for class 'utils' (using loadmap).
Configuration section 'i18n' was successfully loaded.
Class 'i18n' was aliased into the core as component.
Declaration file 'spiralCore/helpers/file.php' was successfully loaded for class 'file' (no loadmap).