PHPackages                             oops/morozko - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. oops/morozko

Abandoned → [contributte/console-extra](/?search=contributte%2Fconsole-extra)Library[Caching](/categories/caching)

oops/morozko
============

Cache warmup library for Nette Framework.

1.0.0-beta.1(8y ago)010.1k2BSD-3-ClausePHPPHP &gt;= 7.1.0

Since Jan 2Pushed 7y ago1 watchersCompare

[ Source](https://github.com/o2ps/Morozko)[ Packagist](https://packagist.org/packages/oops/morozko)[ RSS](/packages/oops-morozko/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (9)Versions (5)Used By (2)

Oops/Morozko
============

[](#oopsmorozko)

⚠️ **THIS PACKAGE IS NO LONGER MAINTAINED.** You can use the AdvancedCache module from [contributte/console-extra](https://github.com/contributte/console-extra) instead.

[![Build Status](https://camo.githubusercontent.com/b3154dd121bbef03c123b205b9c52b378a6d5199d2416199b677f78aef22625c/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6f3270732f4d6f726f7a6b6f2e737667)](https://travis-ci.org/o2ps/Morozko)[![Downloads this Month](https://camo.githubusercontent.com/cf911865a2d7f60d9e3328c0b47c764718bd08eeb930908cbc307e19f5c904ac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6f6f70732f6d6f726f7a6b6f2e737667)](https://packagist.org/packages/oops/morozko)[![Latest stable](https://camo.githubusercontent.com/d8d14ed83efd071ec7eddd17429b6407ffc7b539eff2e2fdfc470d5042f68985/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f6f70732f6d6f726f7a6b6f2e737667)](https://packagist.org/packages/oops/morozko)

[![Morozko, the impersonation of frost from a 1964 Soviet movie](morozko.jpg)](morozko.jpg)

> Are you warm yet, my little application?

Morozko is a utility for cache warmup in a Nette Framework application.

Installation and requirements
-----------------------------

[](#installation-and-requirements)

```
$ composer require oops/morozko
```

Oops/Morozko requires PHP &gt;= 7.1.

Oops/Morozko provides a Symfony/Console command, thus, **you must also install and configure a Symfony/Console integration package** such as [Kdyby/Console](https://github.com/Kdyby/Console) or [contributte/console](https://github.com/contributte/console).

Usage
-----

[](#usage)

Register the extension in your config file. Don't forget to register a Symfony/Console integration as well:

```
extensions:
    morozko: Oops\Morozko\DI\MorozkoExtension
    console: Kdyby\Console\DI\ConsoleExtension
```

Then you can directly run the `oops:morozko:warmup` command, or add it to your deploy process.

### Default cache warmers

[](#default-cache-warmers)

By default, the `oops:morozko:warmup` command executes one default cache warmer: the `NetteConfiguratorCacheWarmer`, which compiles the DI container.

To be able to do so, it needs to know how your DI container is configured - you need to provide it with an implementation of `ConfiguratorFactoryInterface` whose `create()` method should return the same `Configurator` as in your application's `bootstrap.php`. Actually, it might be wise to use the implementation in `bootstrap.php` to prevent code duplication.

```
