-
-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Test autoload from src and bin perspective. * Added Vagrant as a development environment. * Added NotImplemented exception. * Fixed changing user.
- Loading branch information
1 parent
89726a7
commit 814f8f8
Showing
6 changed files
with
138 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ composer.lock | |
*.log | ||
.idea/ | ||
var/ | ||
.vagrant/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
|
||
$script = <<SCRIPT | ||
export DEBIAN_FRONTEND=noninteractive; | ||
PHP_VERSION="5.6"; | ||
## Add Onrej PPA for php 5.6 - 7.2 | ||
add-apt-repository -y -u ppa:ondrej/php; | ||
apt-get install git \ | ||
make \ | ||
"php$PHP_VERSION" \ | ||
"php$PHP_VERSION-cli" \ | ||
"php$PHP_VERSION-common" \ | ||
"php$PHP_VERSION-zip" \ | ||
"php$PHP_VERSION-mbstring" \ | ||
"php$PHP_VERSION-opcache" \ | ||
"php$PHP_VERSION-xml" \ | ||
"php$PHP_VERSION-intl" -y | ||
SCRIPT | ||
|
||
$composer = <<SCRIPT | ||
COMPOSER_VERSION="1.6.4"; | ||
BIN_DIR="/home/ubuntu/bin"; | ||
COMPOSER_FILE="$BIN_DIR/composer"; | ||
mkdir -p "$BIN_DIR" && | ||
wget -q -O "$COMPOSER_FILE" "https://getcomposer.org/download/$COMPOSER_VERSION/composer.phar" && | ||
chmod +x "$COMPOSER_FILE"; | ||
SCRIPT | ||
|
||
Vagrant.configure("2") do |config| | ||
config.vm.box = "ubuntu/xenial64" | ||
|
||
config.vm.network :private_network, ip: "192.168.3.25" | ||
|
||
config.vm.synced_folder ".", "/vagrant", | ||
mount_options: ["actimeo=1"], | ||
nfs: true, | ||
linux__nfs_options: ["rw", "no_subtree_check", "all_squash", "async"] | ||
|
||
if Vagrant::Util::Platform.windows? then | ||
config.winnfsd.uid = 1000 | ||
config.winnfsd.gid = 1000 | ||
end | ||
|
||
config.vm.provider "virtualbox" do |vb| | ||
vb.memory = "1024" | ||
vb.cpus = 2 | ||
vb.name = "crunz-dev" | ||
end | ||
|
||
config.vm.provision "shell", inline: $script | ||
config.vm.provision "shell", inline: $composer | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
namespace Crunz\Exception; | ||
|
||
class NotImplementedException extends CrunzException | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters