PHP code example of becklyn / ddd-file-store
1. Go to this page and download the library: Download becklyn/ddd-file-store library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
becklyn / ddd-file-store example snippets
becklyn_ddd.file_store.handler.create_file:
class: Becklyn\Ddd\FileStore\Application\CreateFileHandler
arguments:
$logger: '@YOUR_PSR_LOGGER_INTERFACE_COMPLIANT_SERVICE_HERE'
tags:
- { name: command_handler, register_public_methods: true }
becklyn_ddd.file_store.handler.replace_file_contents:
class: Becklyn\Ddd\FileStore\Application\ReplaceFileContentsHandler
arguments:
$logger: '@YOUR_PSR_LOGGER_INTERFACE_COMPLIANT_SERVICE_HERE'
tags:
- { name: command_handler, register_public_methods: true }