Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added autoload.php, sandbox in now installable by Composer

`composer create-project nette/sandbox yourProjectName 2.0.5`
  • Loading branch information...
commit bb377960707990efb089e42302f82deb43279bff 1 parent 36f9fd2
@dg dg authored
Showing with 11 additions and 2 deletions.
  1. +2 −2 app/bootstrap.php
  2. +9 −0 libs/autoload.php
View
4 app/bootstrap.php
@@ -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
9 libs/autoload.php
@@ -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

Please sign in to comment.
Something went wrong with that request. Please try again.