forked from zendframework/zendframework
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote branch 'jonathanmaron/zend-service-livedocx-1.3' into zf…
…2/master
- Loading branch information
Showing
31 changed files
with
818 additions
and
634 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
// Set used namespaces | ||
use Zend\Loader\Autoloader; | ||
use Zend\Locale\Locale; | ||
use Zend\Registry; | ||
use Zend\Service\LiveDocx\Helper; | ||
|
||
// Turn up error reporting | ||
error_reporting(E_ALL | E_STRICT); | ||
|
||
// Set path to libraries | ||
set_include_path( | ||
__DIR__ . DIRECTORY_SEPARATOR . 'library' . PATH_SEPARATOR . | ||
dirname(dirname(dirname(dirname(__DIR__)))) . DIRECTORY_SEPARATOR . 'library' | ||
); | ||
|
||
// Set autoloader to autoload libraries | ||
require_once 'Zend/Loader/Autoloader.php'; | ||
Autoloader::getInstance(); | ||
|
||
// Set default locale | ||
Locale::setDefault(Helper::LOCALE); | ||
$locale = new Locale(Locale::ZFDEFAULT); | ||
Registry::set('Zend_Locale', $locale); | ||
|
||
// Ensure LiveDocx credentials are available | ||
if (false === Helper::credentialsAvailable()) { | ||
Helper::printLine(Helper::credentialsHowTo()); | ||
exit(); | ||
} |
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
18 changes: 10 additions & 8 deletions
18
demos/Zend/Service/LiveDocx/MailMerge/constructors/public-zend_config.php
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
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
Oops, something went wrong.