Skip to content

Commit bce08d3

Browse files
committedAug 8, 2014
Updated some notes with the paths to what we're editing
Thanks to Edison Valdez for highlighting this in the comments! http://knpuniversity.com/screencast/composer#comment-1533775747
1 parent 23b67af commit bce08d3

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed
 

‎knpu/composer.rst

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,19 @@ we're going to do this inside a custom Drupal module.
4747
To start, I've created a function called ``get_current_files`` deep inside
4848
my project, which returns an array of filenames::
4949

50-
// list_files.module
50+
// sites/all/modules/list_files/list_files.module
5151
// ...
5252

5353
function get_current_files()
5454
{
5555
return array('foo');
5656
}
5757

58+
.. tip::
59+
60+
I've already created a module called ``list_files`` and enabled it before
61+
starting the tutorial.
62+
5863
I've also gone far enough to print these onto the screen. Ok great, now let's
5964
get to work!
6065

@@ -188,6 +193,9 @@ Now that Composer has downloaded the Finder library, let's use it! To keep
188193
things simple, I'll paste in some Finder code that looks for all gif files
189194
that have been modified within the past day::
190195

196+
// sites/all/modules/list_files/list_files.module
197+
// ...
198+
191199
/**
192200
* A utility function to return the array of current SplFileInfo objects
193201
*/
@@ -225,6 +233,9 @@ thing is that Composer helps us out. To use Composer's autoloader, simply
225233
include the ``vendor/autoload.php`` file somewhere in your project. For now,
226234
let's put it right inside this function::
227235

236+
// sites/all/modules/list_files/list_files.module
237+
// ...
238+
228239
function get_current_files()
229240
{
230241
require __DIR__.'/../../../../vendor/autoload.php';
@@ -242,6 +253,7 @@ For Drupal, this might be the ``settings.php`` file::
242253

243254
// sites/default/settings.php
244255
require __DIR__.'/../../vendor/autoload.php';
256+
245257
// ... the rest of the file
246258

247259
When we refresh, everything still works.

0 commit comments

Comments
 (0)
Please sign in to comment.