Completed
Push — master ( 1759c8...52446f )
by Julito
29:44
created
src/Chamilo/CourseBundle/ToolChain.php 1 patch
Indentation   -6 removed lines patch added patch discarded remove patch
@@ -20,24 +20,18 @@
 block discarded – undo
20 20
  * src/Chamilo/CourseBundle/Tool
21 21
  *
22 22
  * All this classes are registered as a service with the tag "chamilo_course.tool" here:
23
-
24 23
  * src/Chamilo/CourseBundle/Resources/config/services.yml
25 24
  *
26 25
  * The register process is made using the class ToolCompilerClass:
27 26
  *
28 27
  * src/Chamilo/CourseBundle/DependencyInjection/Compiler/ToolCompilerClass.php
29
-
30 28
  * The tool chain is just an array that includes all the tools registered in services.yml
31 29
  *
32 30
  * The tool chain is hook when a new course is created via a listener here:
33
-
34 31
  * src/Chamilo/CoreBundle/Entity/Listener/CourseListener.php
35
-
36 32
  * After a course is created this function is called: CourseListener::prePersist()
37 33
  * This function includes the called to the function "addToolsInCourse" inside the tool chain.
38
-
39 34
  * This allows to create course tools more easily. Steps:
40
-
41 35
  * 1. Create a new tool class here: src/Chamilo/CourseBundle/Tool
42 36
  * 2. Add the class as a service here: src/Chamilo/CourseBundle/Resources/config/services.yml  (see examples there)
43 37
  * 3. Create a new course. When you create a new course the new tool will be created
Please login to merge, or discard this patch.