Permalink
Browse files

added autoload.php, sandbox in now installable by Composer

`composer create-project nette/sandbox yourProjectName 2.0.5`
  • Loading branch information...
dg committed Aug 27, 2012
1 parent 36f9fd2 commit bb377960707990efb089e42302f82deb43279bff
Showing with 11 additions and 2 deletions.
  1. +2 −2 app/bootstrap.php
  2. +9 −0 libs/autoload.php
View
@@ -6,8 +6,8 @@
use Nette\Application\Routers\Route;
-// Load Nette Framework
-require LIBS_DIR . '/Nette/loader.php';
+// Load Nette Framework or autoloader generated by Composer
+require LIBS_DIR . '/autoload.php';
// Configure application
View
@@ -0,0 +1,9 @@
+<?php
+
+// This is default autoload.php. It can be overwritten by Composer.
+
+if (!is_file(__DIR__ . '/Nette/loader.php')) {
+ die("Nette Framework is expected in directory '" . __DIR__ . "/Nette' but not found. Check if the path is correct or edit file '" . __FILE__ . "'.");
+}
+
+require __DIR__ . '/Nette/loader.php';

1 comment on commit bb37796

@fprochazka

This comment has been minimized.

Show comment Hide comment
@fprochazka

fprochazka Aug 27, 2012

Contributor

❤️

Contributor

fprochazka commented on bb37796 Aug 27, 2012

❤️

Please sign in to comment.