Commit Graph

347 Commits

Author SHA1 Message Date
cf7ec423a2 Disabled Modules system by default.
It is not stable, it will not be stable in a long while. For now it is deprecated. A newer better system shall replace it in the future.
2016-07-23 16:53:47 +02:00
23f56b524a Implemented Unit tests for Logger class.
Changed a few other classes since some unused functionality was removed.
2016-07-23 16:32:11 +02:00
1106f49f35 Stopped Exception and Error handler in FuzeWorks when using Tracy.
Now fatal errors and exceptions are handled by Tracy
2016-07-23 02:53:01 +02:00
7b406d864d Implemented a new bar object which contains the FuzeWorks Logger.
This way the logger is not shown prominently on the screen anymore.
2016-07-22 14:14:22 +02:00
099409bc1f Changed the location where Tracy is loaded.
By using the Configurator, Tracy will be loaded before FuzeWorks solving the issue.
2016-07-19 18:42:05 +02:00
8aac7fc3bb Merge branch '86-renewed-models-system' into 'master'
Resolve "Renewed Models System"

Closes #86

See merge request !51
2016-07-19 16:38:04 +02:00
07976216ba Implemented renewed model system.
Resolves #86
2016-07-19 16:31:06 +02:00
49cd813cde Merge pull request #1 from abelhooge/master
Add Travis CI
2016-07-18 22:33:16 +02:00
350e76fcad Add Travis CI (#1)
* Add Travis CI
2016-07-18 22:28:18 +02:00
7531751348 Merge branch '97-make-namespaces-and-classes-psr4-compatible' into 'master'
Implemented a PSR-4 compliant scheme.

##### FuzeWorks can now be properly loaded by Composer, without any lost functionality.

> Closes #97

See merge request !50
2016-07-11 13:06:54 +02:00
320edec16b Implemented a PSR-4 compliant scheme.
FuzeWorks can now be properly loaded by Composer, without any lost functionality.
2016-07-11 12:44:13 +02:00
c4b2291556 Merge branch '100-make-fuzeworks-composer-compatible' into 'master'
Resolve "Make FuzeWorks Composer Compatible"

###### We want to make FuzeWorks Composer compatible so FuzeWorks can be loaded as a dependency. 

This will allow us to load FuzeWorks/Core into FuzeWorks/Application, and possibly use FuzeWorks in other projects as well.

FuzeWorks will need to be trimmed down a lot, and directories should be determined in a different way. All tasks are still to be determined and put in here as a list.

> Closes #100

See merge request !49
2016-07-09 13:17:46 +02:00
d4b4dd5ff2 Added temp directory for unit tests.
Hopefully this resolves all problems in Gitlab
2016-07-09 13:11:57 +02:00
729ccac707 Logger is now fully functional. 2016-07-09 13:00:56 +02:00
7a3bd64fb5 Finished the basic configurator.
Documentation has been added and a tempDir is passed to the core.

An extra exception has been added.
2016-07-09 12:00:59 +02:00
ed93cc3442 Implemented temporal directories.
Cache should now be written to pre-defined directories.
2016-07-09 11:39:36 +02:00
7fc7d63179 Implemented renewed unit tests.
These now work in the new construction
2016-07-07 18:29:26 +02:00
b0f73d5537 Changed all directory pointers in FuzeWorks to use the directories defined in FuzeWorks\Core.
The index file has been removed as well. This file has been replaced with the FuzeWorks\Configurator class. The configurator prepares FuzeWorks and loads it when requested. This allows for more flexible startups.
2016-07-07 17:48:09 +02:00
5d19a1c4dc Removed support for PHP5.4 and 5.5.
This is no longer necessary as FuzeWorks simply doesn't support it anymore.
2016-07-07 13:54:52 +02:00
9b054276c1 Made JSON valid.
Sorry for the inconvencience
2016-07-07 13:50:42 +02:00
6304c84fb7 Added Application folder to gitattributes.
This should soon be removed, but is necessary in this development phase.
2016-07-07 13:49:22 +02:00
c51fc93fb2 Implemented the renewed composer.json and gitattributes for a composer release.
This should allow us to create the project soon in packagist.
2016-07-07 13:47:53 +02:00
2cfb926965 Merge branch 'master' into 'master'
Implemented Nette/Latte engine.

This Engine allows for really neat ways to handle templates. It is an optional dependency which will be installed if composer is used.

See merge request !48
2016-07-07 13:20:36 +02:00
955715c79b Implemented Nette/Latte engine.
This Engine allows for really neat ways to handle templates. It is an optional dependency which will be installed if composer is used.
2016-07-07 13:07:06 +02:00
625e7ffa2b Merge branch '98-implement-hybrid-router' into 'master'
Implemented renewed Routing and Output system.

Everything is in accordance with issue #89 and #90.

> Closes #89 

> Closes #90

> Closes #98 

See merge request !47
2016-06-26 16:41:10 +02:00
c0d9781f6f Fixed issue #98.
Apparantly a failing libraryPaths array can cause things to go really weird.

> Closes #98
2016-06-08 15:19:58 +02:00
440ead5784 Implemented Tracy/Debugger from the Nette framework.
This debugger allows for advanced debugging for both development and production environments.
This did however require the implementation of an ENVIRONMENT constant. This has been put in the index file. If no constant is set it will be set by the core class and the default is PRODUCTION.
Chances are that the location for this constant will move in the future.

There is also a proper way now that fatal errors will lead to a 500 error on the screen. This is either done by Tracy or FuzeWorks, depending on if Tracy is available.
2016-06-08 14:57:41 +02:00
525e77203d Implemented DB Caching 2016-06-07 17:47:35 +02:00
a2bd137386 Added documentation to the Router class. 2016-06-07 16:23:44 +02:00
7aff99c701 Implemented a few unit tests for the new classes. 2016-06-07 15:52:02 +02:00
8298975c98 Implemented renewed Routing and Output system.
Everything is in accordance with issue #89 and #90.
2016-06-07 15:12:35 +02:00
121a6d4735 Merge branch '96-code-coverage-in-gitlab-ci' into 'master'
Resolve "Code Coverage in Gitlab CI"

### Code Coverage is fully functional

Closes #96

See merge request !46
2016-06-04 16:27:41 +02:00
5cb64e95c2 Merge branch '96-code-coverage-in-gitlab-ci' into '96-code-coverage-in-gitlab-ci'
Implemented xdebug in Gitlab CI and added code coverage systems

###### Code Coverage should now work properly.

> Closes #96 


See merge request !45
2016-06-04 16:22:38 +02:00
01491b7f65 Implemented xdebug in Gitlab CI and added code coverage systems
Code Coverage should now work properly.
2016-06-04 16:17:21 +02:00
0ed6d8dd30 Merge branch '77-unit-tests-for-the-core' into 'master'
Core Unit Tests

The first tests have been added: 
- Layout
- Core
- Events
- Helpers
- Factory
- Config
- Libraries

Please wait until more of the list is handled. 

Some of the events mentioned in #77 are fixed. However not all of them are done yet.

> Closes #84

> Closes #88

> Closes #93

See merge request !44
2016-06-04 14:10:01 +02:00
5df6b733d0 Implemented many unit tests.
The following tests for classes have been implemented:
- Security
- Input
- Encryption Library
- Utf8

A mocking autoloader has been added (but is not yet configured correctly)
2016-06-02 23:57:23 +02:00
96ca890656 Finished the Library system
All unit tests have also been implemented.
Many bugs have been smashed with the mighty hammer.
2016-06-02 20:13:08 +02:00
ae94dca984 Removed deprecated methods from Factory.
All classes that use this have been changed.
2016-06-02 20:12:22 +02:00
da1752dd5f Zip class now only uses the Factory class.
The logger is loaded through the Factory class.
2016-06-02 19:15:46 +02:00
c97c7f8aab Config documentation now has @throws statements 2016-06-02 19:15:18 +02:00
ef82ea3463 Added new test for Config.
The test checks if instances from Config->getConfig() are the same.
2016-06-02 15:44:32 +02:00
53f597f947 Implemented a new system for Logging templates.
This allows the user to install new Logging templates that run in specific circumstances. By default the FuzeWorks default (as you already know it) template is installed, and a CLI one.

Closes #88
2016-06-02 15:19:31 +02:00
c0bba7915f Updated PHPUnit to a newer version. 2016-06-02 14:08:48 +02:00
544a84434c Allowed the Factory class to be extended.
A class can now extend the Factory class and use all of its properties.
Properties like the layout system can be called like $this->layout, when extended. Just like the old days with the Bus abstract class.
Advantage of this system is that you don't require the use of extending the Factory class. Calling the factory for just one use is also possible.

Closes #93.
2016-06-02 13:57:32 +02:00
57c54b0126 Implemented simplified config class.
Now it only features one (simpler) ORM, which is the ConfigFileORM.
If a new type of config should be added, it should be done through models.

Unit tests for the basic config class have been implemented.
2016-06-01 16:03:53 +02:00
bc6136525b Implemented the Factory and the FactoryTest.
The Factory class is the central point for class communication in FuzeWorks. When someone needs to load, for instance, the layout class, one has to do the following:

$factory = Factory::getInstance();
$layout = $factory->layout;

The Factory class allows the user to replace dependencies on the fly. It is possible for a class to replace a dependency, like Logger, on the fly by calling the $factory->newInstance('Logger'); or the $factory->setInstance('Logger', $object); This allows for creative ways to do dependency injection, or keep classes
separated.

It is also possible to load a cloned instance of the Factory class, so that all properties are independant as well,
all to suit your very needs.
2016-05-27 16:33:12 +02:00
bb0f8aee65 Update README.md to show build information 2016-05-27 15:08:36 +02:00
5aa165d4a4 Implemented Helper Tests
As more helpers get added, more tests will get added
2016-05-27 14:38:28 +02:00
84432bf9a1 And commit 2, so the capitals are correct 2016-05-27 14:05:11 +02:00
358f064794 One commit to move the file, so we can lower the capitals 2016-05-27 14:03:33 +02:00