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

Marin 1 #211

Merged
merged 5 commits into from
May 18, 2024
Merged
Show file tree
Hide file tree
Changes from 3 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
2 changes: 1 addition & 1 deletion guide/en/concept/autoloading.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Class autoloading

Since Yii uses [Composer](https://getcomposer.org/) to manage packages, it automatically loads classes from these packages
Since Yii uses [Composer](https://getcomposer.org) to manage packages, it automatically loads classes from these packages
without the need to `require` their file explicitly.
When it installs packages, it generates a [PSR-4 compatible autoloader](https://www.php-fig.org/psr/psr-4/).
To use it, `require_once` autoloader `/vendor/autoload.php` in your `index.php` entry point file.
Expand Down
2 changes: 1 addition & 1 deletion guide/en/runtime/sessions.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Yii has [a session package](https://github.com/yiisoft/session) to work with ses
To add it to your application, use composer:

```shell
composer require yiisoft/session --prefer-dist
composer require yiisoft/session
```

## Configuring middleware
Expand Down
8 changes: 4 additions & 4 deletions guide/en/start/creating-project.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Creating a project

You can create a Yii project using the [Composer](https://getcomposer.org/) package manager.
You can create a Yii project using the [Composer](https://getcomposer.org) package manager.

We recommend starting with a project template that's a minimal working Yii project implementing some basic features.
Its code is organized in a recommended way. Therefore, it can serve as a good starting point for your projects.

## Installing composer

If you don't already have a Composer installed, you may do so by following the instructions at
[getcomposer.org](https://getcomposer.org/download/). On Linux and Mac OS X, you'll run the following commands:
[Composer](https://getcomposer.org). On Linux and Mac OS X, you'll run the following commands:
vjik marked this conversation as resolved.
Show resolved Hide resolved

```bash
curl -sS https://getcomposer.org/installer | php
Expand All @@ -35,7 +35,7 @@ With Composer installed, you can create a Yii project from a template by running
under a Web-accessible folder:

```bash
composer create-project yiisoft/app --prefer-dist --stability=dev your_project
composer create-project yiisoft/app --stability=dev your_project
```

This will install the latest <!-- stable -->version of Yii project template in a directory named `your_project`.
Expand All @@ -46,7 +46,7 @@ You can choose a different directory name if you want.
> which adds a [stability option](https://getcomposer.org/doc/04-schema.md#minimum-stability):
>
> ```bash
> composer create-project --prefer-dist --stability=dev yiisoft/app your_project
> composer create-project --stability=dev yiisoft/app your_project
> ```
>
> Note that the development version of Yii shouldn't be used for production as it may break your running code.
Expand Down
2 changes: 1 addition & 1 deletion guide/en/start/prerequisites.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ manage that complexity.

## Command line and Composer

Yii extensively uses the de-facto standard PHP package manager, [Composer](https://getcomposer.org/) so make sure you read
Yii extensively uses the de-facto standard PHP package manager, [Composer](https://getcomposer.org) so make sure you read
and understand its [guide](https://getcomposer.org/doc/01-basic-usage.md). If you aren't familiar with using
the command line, it's time to start trying. Once you learn the basics you'll never want to work without it.

Expand Down
2 changes: 1 addition & 1 deletion guide/es/concept/autoloading.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Autocarga de Clases (Autoloading)

Dado que Yii utiliza [Composer](https://getcomposer.org/) para administar paquetes, las clases de esos paquetes son automaticamente
Dado que Yii utiliza [Composer](https://getcomposer.org) para administar paquetes, las clases de esos paquetes son automaticamente
cargados sin la necesidad de ser incluidos utilizando `require` para cada uno de ellos. Cuando los paquetes son instalados,
un [autocargador compatible con PSR-0](https://www.php-fig.org/psr/psr-4/) es generado. Para usarlo,
se debe invocar el autocargador `/vendor/autoload.php` con `require_once` en el script de entrada `index.php`.
Expand Down
8 changes: 4 additions & 4 deletions guide/es/start/installation.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Installing Yii

You can install Yii using the [Composer](https://getcomposer.org/) package manager.
You can install Yii using the [Composer](https://getcomposer.org) package manager.

Standard installations of Yii result in both the framework packages and a project template being downloaded and installed.
A project template is a working Yii project implementing some basic features, such as login, contact form, etc.
Expand All @@ -9,7 +9,7 @@ Its code is organized in a recommended way. Therefore, it can serve as a good st
## Installing Composer

If you do not already have Composer installed, you may do so by following the instructions at
[getcomposer.org](https://getcomposer.org/download/). On Linux and Mac OS X, you'll run the following commands:
[Composer](https://getcomposer.org). On Linux and Mac OS X, you'll run the following commands:
vjik marked this conversation as resolved.
Show resolved Hide resolved

```bash
curl -sS https://getcomposer.org/installer | php
Expand All @@ -36,7 +36,7 @@ With Composer installed, you can install Yii application template by running the
under a Web-accessible folder:

```bash
composer create-project --prefer-dist yiisoft/yii-demo app
composer create-project yiisoft/yii-demo app
```

This will install the latest stable version of Yii application template in a directory named `app`.
Expand All @@ -46,7 +46,7 @@ You can choose a different directory name if you want.
> which adds a [stability option](https://getcomposer.org/doc/04-schema.md#minimum-stability):
>
> ```bash
> composer create-project --prefer-dist --stability=dev yiisoft/yii-demo app
> composer create-project --stability=dev yiisoft/yii-demo app
> ```
>
> Note that the development version of Yii should not be used for production as it may break your running code.
Expand Down
2 changes: 1 addition & 1 deletion guide/es/start/prerequisites.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ manage that complexity.

## Command line and composer

Yii extensively uses de-facto standard PHP package manager, [Composer](https://getcomposer.org/) so make sure you read
Yii extensively uses de-facto standard PHP package manager, [Composer](https://getcomposer.org) so make sure you read
and understand its [guide](https://getcomposer.org/doc/01-basic-usage.md). If you are not familiar with using command
line it is time to start trying. Once you learn the basics you'll never want to work without it.

2 changes: 1 addition & 1 deletion guide/ru/concept/autoloading.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Автозагрузка класоов

Поскольку Yii использует [Composer](https://getcomposer.org/) для управления пакетами, он автоматически загружает классы из пакетов без необходимости явно подключать их через `require`.
Поскольку Yii использует [Composer](https://getcomposer.org) для управления пакетами, он автоматически загружает классы из пакетов без необходимости явно подключать их через `require`.
При установке пакетов он создает [автозагрузчик, совместимый с PSR-4](https://www.php-fig.org/psr/psr-4/).

Check warning on line 4 in guide/ru/concept/autoloading.md

View workflow job for this annotation

GitHub Actions / build

[vale] reported by reviewdog 🐶 [Microsoft.Acronyms] 'PSR' has no definition. Raw Output: {"message": "[Microsoft.Acronyms] 'PSR' has no definition.", "location": {"path": "guide/ru/concept/autoloading.md", "range": {"start": {"line": 4, "column": 64}}}, "severity": "INFO"}
Чтобы использовать его, подключите `/vendor/autoload.php` через `require_once` в ваш входной скрипт `index.php`

Вы можете использовать автозагрузчик не только для установленных пакетов, но и для всего вашего приложения, поскольку оно тоже является пакетом. Чтобы загрузить классы определенного пространства имен добавьте в `composer.json`:
Expand All @@ -22,5 +22,5 @@

## Ссылки

- [PSR-4: Autoloader](https://www.php-fig.org/psr/psr-4/).

Check warning on line 25 in guide/ru/concept/autoloading.md

View workflow job for this annotation

GitHub Actions / build

[vale] reported by reviewdog 🐶 [Microsoft.Acronyms] 'PSR' has no definition. Raw Output: {"message": "[Microsoft.Acronyms] 'PSR' has no definition.", "location": {"path": "guide/ru/concept/autoloading.md", "range": {"start": {"line": 25, "column": 4}}}, "severity": "INFO"}
- [Composer guide on autoloading](https://getcomposer.org/doc/01-basic-usage.md#autoloading).
Loading