<commit_before>UPGRADE FROM 3.5 to 3.6
=======================

## Filesystem component

With this release we introduce the Filesystem component into Fork CMS. This
component allows us to interact with the filesystem

More info about the Console component can be found on:
http://symfony.com/doc/current/components/filesystem.html

### Upgrading your module

There are several pieces of code that should be replaced

#### Backend

In the backend the filesystem component is available through the container. So
each time you need the filesystem-object you should use:

	BackendModel::getContainer()->get('filesystem');


Below you can find all changes you should apply to make your module compatible
with this release.

##### SpoonFile::exists

	SpoonFile::exists(...);

Should become

	BackendModel::getContainer()->get('filesystem')->exists(...);

##### SpoonFile::delete

	SpoonFile::delete(...);

Should become

	BackendModel::getContainer()->get('filesystem')->remove(...);

##### SpoonFile::move

	SpoonFile::move(...);

Should become

	BackendModel::getContainer()->get('filesystem')->rename(...);

##### SpoonDirectory::exists

	SpoonDirectory::exists(...);

Should become

	BackendModel::getContainer()->get('filesystem')->exists(...);

##### SpoonDirectory::create

	SpoonDirectory::create(...);

Should become

	BackendModel::getContainer()->get('filesystem')->mkdir(...);

##### SpoonFileException

	SpoonFileException(...);

Should become

	IOException(...);

Also don't forget to add the `use Symfony\Component\Filesystem\Exception\IOException;`-statement at the top the file where you throw an IOException<commit_msg>Updated the upgrade-guide so it states the correct method to grab the container in the frontend.<commit_after>UPGRADE FROM 3.5 to 3.6
=======================

## Filesystem component

With this release we introduce the Filesystem component into Fork CMS. This
component allows us to interact with the filesystem.

More info about the Filesystem component can be found on:
http://symfony.com/doc/current/components/filesystem.html

### Upgrading your module

There are several pieces of code that should be replaced.

In the backend the filesystem component is available through the container. So
each time you need the filesystem-object in the backend you should use:

	BackendModel::getContainer()->get('filesystem');

In the frontend the filesystem component is available through the containser. 
So each time you need the filesystem-object in the backend you should use:

	FrontendModel::getContainer()->get('filesystem');

Below you can find all changes you should apply to make your module compatible
with this release. Make sure you use the correct method to retrieve the 
container.

##### SpoonFile::exists

	SpoonFile::exists(...);

Should become:

	BackendModel::getContainer()->get('filesystem')->exists(...);

##### SpoonFile::delete

	SpoonFile::delete(...);

Should become:

	BackendModel::getContainer()->get('filesystem')->remove(...);

##### SpoonFile::move

	SpoonFile::move(...);

Should become:

	BackendModel::getContainer()->get('filesystem')->rename(...);

##### SpoonDirectory::exists

	SpoonDirectory::exists(...);

Should become:

	BackendModel::getContainer()->get('filesystem')->exists(...);

##### SpoonDirectory::create

	SpoonDirectory::create(...);

Should become:

	BackendModel::getContainer()->get('filesystem')->mkdir(...);

##### SpoonFileException

	SpoonFileException(...);

Should become:

	IOException(...);

Also don't forget to add the 
`use Symfony\Component\Filesystem\Exception\IOException;`-statement at the top 
the file where you throw an IOException.
{'fraction_non_alphanumeric': 0.14596529881575324, 'fraction_numerical': 0.002203249793445332, 'mean_word_length': 5.145516074450085, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 26, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6046182', 'n_tokens_mistral': 1018, 'n_tokens_neox': 962, 'n_words': 330}