Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: added the "built with MicroSymfony" section #140

Merged
merged 1 commit into from
Dec 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ file, replace all occurrences of `7.2` with `6.4` and run `composer up`.
* [Contributing](#contributing-)
* [Security](#contributing-)
* [Credits](#contributing-)
* [License](#contributing-)
* [License](#license-)
* [Built with MicroSymfony](#built-with-microsymfony-)


## Demos 🌈
Expand Down Expand Up @@ -253,10 +254,15 @@ Please see [SECURITY](https://github.com/strangebuzz/MicroSymfony/blob/main/SECU

## Credits 🙏

* [COil](https://github.com/COil)
* [COil](https://github.com/COil) (main maintainer)
* [All Contributors](https://github.com/strangebuzz/MicroSymfony/graphs/contributors)


## License ⚖️

The MIT License (MIT). Please see [License File](https://github.com/strangebuzz/MicroSymfony/blob/main/LICENSE) for more information.


## Built with MicroSymfony 🛠️

* [placehold.ovh](https://placehold.ovh/)
13 changes: 7 additions & 6 deletions config/services.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,35 @@
// Files in the packages/ subdirectory configure your dependencies.

// Put parameters here that don't need to change on each machine where the app is deployed
// https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration
// @see https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration

// The PHP configuration files have been generated with symplify/config-transformer.
// @see https://github.com/symplify/config-transformer

declare(strict_types=1);

use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symfony\Component\HttpKernel\Kernel;

return static function (ContainerConfigurator $containerConfigurator): void {
// Parameters
$parameters = $containerConfigurator->parameters();

// System parameters: https://symfony.com/doc/current/performance.html
// System parameters: https://symfony.com/doc/current/performance.html#dump-the-service-container-into-a-single-file
$parameters->set('.container.dumper.inline_factories', true);

// Application parameters
// Application parameters ——————————————————————————————————————————————————
$parameters->set('brand', 'MicroSymfony');
$parameters->set('brand_html', '<b>Micro</b>Symfony 🎶');
$parameters->set('brand_emoji', '🎶️');
$parameters->set('website', 'https://github.com/strangebuzz/MicroSymfony');
$parameters->set('version', '1.0.0');
$sfVersion = substr(Kernel::VERSION, 0, 3); // minor Symfony version

$description = <<<DESCRIPTION
A Symfony <b>$sfVersion</b> application template on steroids, ready to use.
DESCRIPTION;
$parameters->set('description', $description);

// Services
// Services ————————————————————————————————————————————————————————————————
$services = $containerConfigurator->services();
$services->defaults()
->autowire() // Automatically injects dependencies in your services.
Expand Down
Loading