Skip to content

Commit

Permalink
Merge pull request #7761 from cakephp/5.x-plugin-class
Browse files Browse the repository at this point in the history
Fix docs about plugin class name
  • Loading branch information
markstory authored Nov 3, 2023
2 parents 3196e8a + 38c638f commit d7469d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions en/plugins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ classes::
$plugin->enable('routes');
$this->addPlugin($plugin);

Plugin objects also know their names and path information::
Plugin classes also know their names and path information::

$plugin = new ContactManagerPlugin();

Expand Down Expand Up @@ -290,11 +290,11 @@ autoloader once you've created your plugin:
.. _plugin-objects:

Plugin Objects
Plugin Classes
==============

Plugin Objects allow a plugin author to define set-up logic, define default
hooks, load routes, middleware and console commands. Plugin objects live in
Plugin classes allow a plugin author to define set-up logic, define default
hooks, load routes, middleware and console commands. Plugin classes live in
**src/{PluginName}Plugin.php**. For our ContactManager plugin, our plugin class could look
like::

Expand Down
4 changes: 2 additions & 2 deletions fr/plugins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ Configuration du Plugin

Les plugins proposent plusieurs *hooks* permettant à un plugin de s'injecter
lui-même aux endroits appropriés de votre application. Les *hooks* sont:

* ``bootstrap`` Utilisé pour charger les fichiers de configuration par défaut
d'un plugin, définir des constantes et d'autres fonctions globales.
* ``routes`` Utilisé pour charger les routes pour un plugin. Il est déclenché
Expand Down Expand Up @@ -293,7 +293,7 @@ re-générer votre autoloader après avoir créé votre plugin:
.. _plugin-objects:

Plugin Objects
Plugin Classes
==============

Les Objets Plugin permettent à un auteur de plugin de spécifier une logique de
Expand Down

0 comments on commit d7469d4

Please sign in to comment.