<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 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 altered. Below you can find all
changes you should apply to make your module compatible with this release.

General rule of thumb is: use the filesystem-component if you are generating
files or are working with directories, in other cases the native PHP-methods
are prefered.


* SpoonFile::exists

   Before:
	```
	SpoonFile::exists(...)
	```

   After:
	```
	// depending on the situation you should use
	is_file(...)
	// or
	is_dir(...)
	// or
	file_exists(...)
	// or create a filesystem-object
	use Symfony\Component\Filesystem\Filesystem;
    use Symfony\Component\Filesystem\Exception\IOException;
    ...
	$fs = new Filesystem();
	$fs->exists(...)
	```

#### SpoonFile::delete

	SpoonFile::delete(...);

Should become:

	$this->getContainer()->get('filesystem')->remove(...);

#### SpoonFile::move

	SpoonFile::move(...);

Should become:

	$this->getContainer()->get('filesystem')->rename(...);

#### SpoonDirectory::exists

	SpoonDirectory::exists(...);

Should become:

	$this->getContainer()->get('filesystem')->exists(...);

* SpoonDirectory::create

   Before:
	```
	SpoonDirectory::create(...);
	```

   After:
	```
	use Symfony\Component\Filesystem\Filesystem;
    use Symfony\Component\Filesystem\Exception\IOException;
    ...
	$fs = new Filesystem();
	$fs->mkdir(...)
	```

* SpoonFileException<commit_msg>SpoonFile::exists & SpoonDirectory::exists have the same replacement<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 altered. Below you can find all
changes you should apply to make your module compatible with this release.

General rule of thumb is: use the filesystem-component if you are generating
files or are working with directories, in other cases the native PHP-methods
are prefered.


* SpoonFile::exists / SpoonDirectory::exists

   Before:
	```
	SpoonFile::exists(...)
	```

   After:
	```
	// depending on the situation you should use
	is_file(...)
	// or
	is_dir(...)
	// or
	file_exists(...)
	// or create a filesystem-object
	use Symfony\Component\Filesystem\Filesystem;
    use Symfony\Component\Filesystem\Exception\IOException;
    ...
	$fs = new Filesystem();
	$fs->exists(...)
	```

* SpoonFile::delete

	SpoonFile::delete(...);

Should become:

	$this->getContainer()->get('filesystem')->remove(...);

#### SpoonFile::move

	SpoonFile::move(...);

Should become:

	$this->getContainer()->get('filesystem')->rename(...);

* SpoonDirectory::create

   Before:
	```
	SpoonDirectory::create(...);
	```

   After:
	```
	use Symfony\Component\Filesystem\Filesystem;
    use Symfony\Component\Filesystem\Exception\IOException;
    ...
	$fs = new Filesystem();
	$fs->mkdir(...)
	```

* SpoonFileException
{'fraction_non_alphanumeric': 0.1543643819566491, 'fraction_numerical': 0.0023432923257176333, 'mean_word_length': 3.9136690647482015, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 22, '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': '4574670', 'n_tokens_mistral': 1063, 'n_tokens_neox': 1006, 'n_words': 300}